Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Running and Monitoring program output

by pzbagel (Chaplain)
on Feb 20, 2004 at 17:05 UTC ( [id://330606]=note: print w/replies, xml ) Need Help??


in reply to Running and Monitoring program output

For a process that you want to run 24/7 I would suggest you write to a file and have your Perl script read that file. If you don't want to waste the space on the filesystem, you can also write to a named pipe which the Perl script can then read from. This separates the two processes so that they can be handled independently from each other. Important when we are talking about a service that is supposed to run all the time. Finally, if this is something you would be kicking off on the command-line from time to time, you could always use pipes to redirect the output of one into the input of another.

<cmd1> | <cmd2.pl>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (1)
As of 2024-04-19 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found