[CentOS] Detect file change
Toby Bluhm
tkb at alltechmedusa.com
Tue Jan 26 13:00:51 UTC 2010
Alan Hoffmeister wrote:
> Em 26/01/2010 10:38, Wade Hampton escreveu:
>> If you know C, you can write a simple program using
>> inotify(7). For example, you could write a program
>> to continually monitor the directory and pass
>> in the script plus args as a arg.
>>
>> See: http://www.ibm.com/developerworks/linux/library/l-inotify.html
>>
>>
> I don't know C... I was looking for a bash script...
If you want to try inotify, rpmforge has inotify-tools rpm. Sample
scripts in the man pages.
--
tkb
More information about the CentOS
mailing list