The facility you want is inotify. It works on directories, but not recursively so far as I recall. There's an inotify-tools package that includes an inotifywait demonstrator that can be fairly useful in shell scripts.
Last edited by jthill; 01-20-2012 at 03:12 PM.
Reason: hyphen in inotifytools
|