(Specifically, if the goal is to monitor changes as they happen and the service can be assumed to be continually running.)
(Specifically, if the goal is to monitor changes as they happen and the service can be assumed to be continually running.)
[0] http://linux.die.net/man/8/incrond
EDIT: As a use case example I use this to detect when a new cert request is made to my Puppet master server. Once a CSR file is created, I check if the host is created by our provisioning system, and if so, then sign it.
EDIT2: This will eventually go into 3.4.0 - https://projects.puppetlabs.com/issues/7244
Puppet server doesn't have this host in autosign.conf, so doesn't automatically sign the cert. And this is where incron kicks in and runs my script. The script queries the provisioning tool, sees that the host is in there, and runs puppet cert sign command.
Windows seems to have a low-level api for querying the filesystem/vfs for changes since you last looked: http://msdn.microsoft.com/en-us/library/windows/desktop/aa36...
And BTRFS has some ability to do this with find-new: http://www.tummy.com/blogs/2010/11/01/fun-with-btrfs-what-fi...
It's nice that btrfs has these new interesting features, also see send/receive, but it's not available in the vfs, and I suppose never will be.