Gus Wirth wrote:
[snip]
There is a better way to do this. For quite a while there has been a
kernel function called inotify, which registers file change
notifications. Documentation is in the kernel source. There is a C
library and programs available at
<http://inotify-tools.sourceforge.net/> that uses the inotify call. You
can get pre-made programs for Fedora through the Extras repository (Main
repository for 7 and later) by doing:
# yum install inotify-tools
See the web page for other Linux versions like Debian.
If anyone is interested, I have hacked the RPM spec file to allow
compiling version 3.11 (latest as of 09/23/2007) based on the repository
version 3.6. Works fine on Fedora Core 5.
Gus
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie