May 16, 2005, 11:23 AM
Post #1 of 1
I need to write a script in Perl or Shell.... that idles, but when an event occurs, some action is triggered.
Need Help with PERL waiting for input from a background program
In my case EVENT is a text based DTMF decoder. A program that takes sound card input and listends for DTMF tones.
Basically a program would be running in the background waiting for input and when it hears sound it would print out a string of numbers "12321321488998090".
I need the script to capture the output from that program and do some actions.
To me it sounds like Event handling. Can someone direct me to examples of how this can be done. I am sure it is very doable.
Thank you a lot!