monitor util in a scripted daemon?
glarkin at FreeBSD.org
Fri Jul 23 20:43:54 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Neil Smith wrote:
> - Is there a command (native, shell, or ports collection) to sit and watch for new file creation in a directory?
> - I'd like to build a system startup script for such a command and its scripted actions. Sound possible?
> - Is there already something in the default OS that does something similar?
> Neil Smith neils at tamu.edu
> Comp. Sys. Mngr., Atmospheric Sciences
I haven't used it yet, but gamin should do the trick:
I don't see why you couldn't wrap it with a startup script so a list of
monitored files/directories could be added to /etc/rc.conf.
Hope that helps,
http://www.FreeBSD.org/ - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the freebsd-questions