incron allows you to run jobs when the filesystem changes. There is a nice tutorial at Linux.com.