Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Redirecting stdout/stderr to pipe

by Roy Johnson (Monsignor)
on Sep 19, 2005 at 16:07 UTC ( [id://493189]=note: print w/replies, xml ) Need Help??


in reply to Redirecting stdout/stderr to pipe

alarm is the usual way to set a timeout. Set it when you fork, and reset it if the child exits in time.

Use select to poll for available data on each of your filehandles, adding to a variable to keep track of the amount of output they've produced.


Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found