I have a directory that has many folders with code inside it, and I need to run a script to rsync changes over to a couple other servers. I have that script written and working fine, but I cannot find something that will check the directory tree for changes. I tried stat, but that only check one folder down, not recursively (as far as I could figure out). Anyone know of a command or program I could install to do this? I use Ubuntu 10.04. Thanks in advance.
Ubuntu – Need to check a directory tree for changes every 10 seconds and run a script if it is changed
directorymonitoringrsyncUbuntu
Best Answer
inotifywait
will do recursive checks.It's in the Ubuntu repositories.