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

  • Jeff Fulmer: I love that there’s an end bracket surround by a sea of comments. That really aids its...
  • Tim: The more I read that code – the more wtf it becomes. Its a work of beauty that you appreciate the longer...
  • Mike: I just now saw you know DK effect already. Whoops.
  • Mike: “he lacks the skill to recognize his ineptitude” I believe it’s recognized as the...
  • Mirko: Wow! This trick saved my day :) thanks a lot