LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   running a process when a directory or its contents change (https://www.linuxquestions.org/questions/linux-software-2/running-a-process-when-a-directory-or-its-contents-change-396561/)

stevenk15 12-26-2005 10:35 AM

running a process when a directory or its contents change
 
I would like an rsync process to be executed when a directory, its subdirectories or contents are modified. I'm not sure the best way to do this. I could put an entry into the cron and have it run every 2 minutes or something but that seems a bit excessive. The directories may only change once per day but when they do they need to rsync. Any ideas?

mjmwired 12-27-2005 11:44 AM

A quick look on google gives some ideas:
http://www.devchannel.org/devtoolsch.../2146252.shtml


All times are GMT -5. The time now is 09:27 AM.