Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to understand how inotify works and it seems that you need to program stuff in C for it to work.

Since I don't know C, I was wondering if there is a program or script already made to monitor a single directory.

Thanks in advance for your suggestions. Regards

share|improve this question
    
Hi thanks for your response. Do you think it's reliable/trustworthy? You can put it up as an answer if you wish. Thanks a lot –  ericd Sep 22 '12 at 2:29
    
It's been around for quite some time, and is widely used. You can make whatever assumptions you want from that. –  EEAA Sep 22 '12 at 2:37
1  
serverfault.com/a/418151/59925 –  quanta Sep 22 '12 at 2:45
    
Thanks a lot. Looking into that. –  ericd Sep 22 '12 at 2:53
add comment

1 Answer

up vote 1 down vote accepted

Check out incron. Incron uses the inotify kernel hooks to let you run cron-like commands when certain specified events happen on the filesystem.

share|improve this answer
    
Thanks a lot for that –  ericd Sep 22 '12 at 2:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.