How to automatically run a script when the contents of a directory changes in Linux?

Posted by GeneQ on Server Fault See other posts from Server Fault or by GeneQ
Published on 2009-08-05T01:45:42Z Indexed on 2010/05/24 17:21 UTC
Read the original article Hit count: 253

I want to automatically run a script whenever new files are copied into a particular directory. In other words, is there a way in Linux to "watch" a directory for changes and then run something in response to the change?

© Server Fault or respective owner

Related posts about linux

Related posts about scripting