perlquestion
Octavian
Help! I am in need of some divine wisdom!
<p/>
I have been asked if there is a way to monitor the output of an exsisting script and send an email
notification if a certain event occurs. The script that runs dumps its output to standard out, and
runs forever or until killed.(Imagine doing a tail -f on syslog.log or something, they want to be
notified if a certain condition occurs) I tried throwing it into an array, but that just sits
there until it is finished getting STDIN, which in the case of this script, never happens so
that doesnt work...
<p/>
So my question is this: Is there a way to my perl script monitor in real time the output of another
script while it is dumping output? they are looking for a way to do a
<code>
./script |./monitor.pl or just
</code>
have ./monitor.pl call script and watch it...either way works...but I am starting to doubt that it can
be done..
<p/>
Please advise....
<p/>
<small><b>update</b> (broquaint): added <tt><code></tt> tags and some further formatting</small>