Tailbeep opens a file (-f), seeks to the end, and watches for a string (-s). If the string is found, a beep is sent to the specified tty (-t) device.
You can also daemonize (-d) it.
If you use -D, you'll see debugging messages if you don't daemonize.
If you use -p "message", it will send "message" to /dev/speech. If you don't have speechd running, then the program will sit there, so be sure that you have the speech set up first.
If you use -P, it will send the found line to /dev/speech. You can use -P and -p at the same time.
You can also specify frequency (-F) and milliseconds (-M) differently from their defaults of 750Hz and 250ms.
You can use the -x option to run a command (i.e. tailbeep ... -x "echo break-in|mail mypager@mypager.duh.net")
To test speech, echo blah blah > /dev/speech
To build it, type make.
If you're on a red hat 6.x system and you want a glibc20 binary, type make rh60
You can mv the executable where you like or do make install for /usr/local/bin
Warranty: none
main()
{
My_Liability_If_This_Messes_Up_Your_System=NULL; }
email: dentar@dentar.com with questions/complaints/compliments/money
If you have any cool improvements, send 'em in!
Have phun!
