Possible Duplicate:Can a bash script be hooked to a file? Is it possible to mount a mechanism to a file to perform an action (e.g. mark the change in some log file and such) each time the file is modified?  I would like to be able to see what all the files modified are in a given time period or receive an alert each time someone modifies a file.
Trigger action each time a file is modified
filesystems;files;hook
You can use incron for this if your os and filesystem support inotify.