fsniper is a tool that monitors a given set of directories for new or modified files. Then, based on the file’s type or name, it invokes a script to be run on that file. Directories are monitored using inotify, instead of simply continuously polling them for changes. Common uses include making a single download directory for all things from a Web browser and having semi-intelligent scripts figure out what to do with those files. You write the scripts yourself.
fsniper uses inotify to watch for when a file is closed after being written to. This means utilities such as touch will cause the event to trigger.
fsniper can watch any number of directories for any number of pattern matches on the files.
Download the sniper.tar.gz here (may be old)
Latest version of fsniper-1.3.1.tar.gz
(more…)