Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Redirecting stdout/stderr to pipe

by Roy Johnson (Monsignor)
on Sep 19, 2005 at 16:07 UTC ( #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? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-09-28 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (124 votes). Check out past polls.

    Notices?