Bash script queueing
I've got 'iwatch' looking at a directory, and when a particular file is created I want to run an rsync.
The catch is,.. if 10 files are created simultaneously, I dont want 10 scripts running rsync jobs.
Im thinking the only way to do this is to have a queue process which notes the file that was made in a text file serially, and a sync process which reads that file one line at a time and syncs them.
What say you?
|