Watching a directory for changes

Joel Hammer Joel
Mon May 17 11:39:22 PDT 2004


I want to have a background job watching a directory for new files
arriving, and then responding when they arrive.
The response time has to be very quick (impatient humans), maybe on the order
of a 1/2 second or less.
I could have a bash script watching the directory, but the sleep command
works in intervals of 1 second. Not fast enuf.
Any ideas appreciated,
Joel



More information about the Linux-users mailing list