[arch-general] File notification question

Andrei Thorp garoth at gmail.com
Thu Mar 26 01:03:46 EDT 2009


I think what's most appropriate is "fsniper", which uses inotify.

"fsniper is a tool that monitors a given set of directories for new
files. Then, based on the new file's type or name, it invokes a script
to be run (any executable via the shell) on that file. Common uses
include making a single drop directory for all things from a
webbrowser etc, and having semi-intelligent scripts figure out what to
do with those files."

Seems like that's pretty much... exactly what the user was looking for
originally. You just have it monitor your directory, and make it
execute a script when a new file arrives. Cheers.

-AT

2009/3/25 Johannes Held <mail at hehejo.de>:
> What about inotify?
>
> http://www.ibm.com/developerworks/linux/library/l-inotify.html
>
> --
> Gruß, Johannes
> Täglich http://blog.hehejo.de und du fühlst dich gut.
>
> http://cryptocd.eduforge.org/online_version
>


More information about the arch-general mailing list