Watching a directory for changes
Douglas J Hunley
doug
Mon May 17 11:39:22 PDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Joel Hammer spewed electrons into the ether that resembled:
> 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,
have you looked at freshmeat? there's a couple of programs for this purpose.
dirwatch is one, IIRC. and isn't this what FAM is for?
- --
Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778
Admin: Linux StepByStep - http://www.linux-sxs.org
and http://jobs.linux-sxs.org
Real programmers don't comment their code. It was hard to write, it
should be hard to understand.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE9uLhSSrrWWknCnMIRAilrAKDQ7op0TiGrlTk568TPmq/FN6kMGwCfXEOR
bxc5a3saOJOsWGeVCf1i4no=
=V/tP
-----END PGP SIGNATURE-----
More information about the Linux-users
mailing list