Fido FAQ

FREQUENTLY ASKED QUESTIONS

What Is It? ^

Fido is a multi-threaded file watcher and action utility. It can watch one or more files for user defined patterns. When it finds a match, it can run a user defined program.

How Does It Work? ^

Fido works likes the UNIX command tail -f haha.log | grep something Since it’s multi-threaded, it can do this to several files at once. It can also match several different patterns. And once fido has a match, it issues a user defined command.

How do I know which pattern was matched? ^

Fido allows you to mark your regular expressions with a label. The label may contain all CAPS, NUMBERS and the ‘-‘ and ‘_’ characters followed by a colon. Here’s an example:

HAHA-01_A: .*My pattern.*

In this case, HAHA-01_A is the label. If fido matches .*My pattern.* in its watch file, it will send that as a argument to your action program. You can use that label in your script to key an event or simply as an identifier.

 

Posted in | Leave a comment

Leave a Reply




Recent Comments

  • Tim: For those who enjoy playing at home and are extra OCD … they’ll spot something wrong with this....
  • roshni: Hi jeff, I need your help regarding running urls in a file containing post directives. Could you please send...
  • Alle: In seige, what does the pink result mean?
  • Windows User: Nice collection of Perl modules. Thanks for sharing.
  • Jeff Fulmer: No idea. What do you see in the webserver’s logs?