Fido is a multi-threaded file watch utility. It can monitor files for changes in content or modification times. If it notices a change, it will kick off a user-defined script.
Content changes can be recognized with regular expression pattern matches. For example, you can monitor a jboss or tomcat log file for out of memory errors with this pattern: .*OutOfMemory.* Here’s an example which demonstrates how to use Fido to kick off jobs on a pattern match.
Along with content changes, Fido can monitor a file or directory to see if its modification time changed. It’s smart enough to recognize a change even if the daemon was down at the time of the change. This example shows how to use fido to kick off jobs after an FTP upload.
Fido was written for RedHat Enterprise Linux but it should run in all Linux flavors. The source bundle contains RedHat init.d scripts for your convenience. This software was not tested on other platforms but it was coded to POSIX 1003.1 standards.
FIDO-1.0.6 Feb 15 21:54:20 EST 2012 — This release adds new command line options for more flexibility.
FIDO-1.0.5 Jan 25 18:06:08 EST 2012 — This is the first public release.