Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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

by Limbic~Region (Chancellor)
on Jul 24, 2003 at 13:44 UTC ( #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

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?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2022-01-16 20:23 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (49 votes). Check out past polls.