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: Ten isn’t a large number of concurrent users so you’re probably not opening more connections...
  • Snooops: Hey Guys, im running siege 3.0.9 with: siege -c10 -r once -f urls2.txt -b i get a lot of: [alert] socket:...
  • Oleg: Hm, i have the same problem as “Gokul Muralidharan says: July 27, 2012 at 1:00 pm” He says “I...
  • Jeff: Oleg, Because you told it to run just one repetition: -r1 I think what you’re looking for is...
  • Oleg: I think, i have found one bug. The command siege -d10 -r1 -c25 -f url.txt hits ONLY FIRST url. Why?