Skip site navigation (1)Skip section navigation (2)
Date:      13 May 2003 13:47:31 +0200
From:      Guy Van Sanden <n.b@myrealbox.com>
To:        freebsd-questions@freebsd.org
Subject:   Trigger on file change
Message-ID:  <1052826451.27682.29.camel@horus>

next in thread | raw e-mail | index | archive | help
I need to have a script run everytime a file changes.
The file only changes once every month (tops), but the script needs to
be run rather fast after the change (5-10 minutes)

I thought of leaving the script looping, making a checksum / date check
every time and sleeping the rest, but it seems like a lot of overhead
(disk access).

Does anyone know of a utility that can do this, possibly one that can
monitor filehandlers in the kernel?

Thanks

Guy





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1052826451.27682.29.camel>