The tag has no wiki summary.

learn more… | top users | synonyms

16
votes
4answers
14k views

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

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 ...
2
votes
4answers
3k views

How to find out what files an installer (rpm, deb) created?

I need to find out all the file system modifications an installer did. Most likely the installed package is an rpm or deb, but an app could of course be simply copied over or compiled and installed ...
5
votes
3answers
2k views

lsync, unison or some other inotify auto-syncing tool..?

I have an app farm which generates thumbnails and makes them available to a web server farm using nfs. However the performance is so poor so I am going to make a local copy of the files on each web ...
6
votes
4answers
902 views

Automatically run a command every time a file is changed

Each time I make some changes to a file and save, I'd like a command to run. I can set up a Ruby script that could monitor the file and run the command as I'd like, but it occurs to me that there ...
0
votes
1answer
2k views

Question About inotifywait

Here is an example shell script I'm looking at implementing using inotify: inotifywait -mrq -e close_write -e create -e delete -e move /var/www | while read file; do rsync -av /var/www1/ ...