Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: Re: reading output from another script

by Limbic~Region (Chancellor)
on Jul 24, 2003 at 13:44 UTC ( [id://277532]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: reading output from another script
in thread reading output from another script

Octavian,
I do not see how this is possible without modifying the original script at least a little. When you use IO::Tee, you will be able to tie both the LOG and STDOUT to the same filehandle, so that wherever there is a print statement - it will print in both places. By setting auto-flush ($|), you will see events in the log as they happen (or pretty close). The script you write will have to use File::Tail to constantly be checking the bottom of the log looking for a specific event, which will trigger a desired action - such as email/page.

I am not sure how to help beyond this without seeing the code of the original script, some sample output, and what "events" would like a trigger action.

Cheers - L~R

  • Comment on Re: Re: Re: Re: reading output from another script

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://277532]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found