ABOUT FIDO
Fido is a multi-threaded file watch utility. It can monitor files for changes in content or modification times. If it detects a change, it will execute 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 that 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 detect changes in its modification time. 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.
PLATFORM SUPPORT
Fido was written for Red Hat Enterprise Linux, but it should run in all Linux flavors. The source bundle includes Red Hat init.d scripts for your convenience. This software was not tested on other platforms, but it was coded to POSIX 1003.1 standards.