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

  • Mirko: Wow! This trick saved my day :) thanks a lot
  • The Spaniard: greatest team ever
  • Mike Smith: I find that Dunning-Kruger explains a lot. The difficult part is getting help to those that suffer from...
  • Sohan: I am using node-js http server. I created http request to hit the server and log the message. In that case...
  • Jeff Fulmer: I don’t know what “simple http server” means. If you’re using apache out of the...