Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Redirecting stdout/stderr to pipeby Roy Johnson (Monsignor) |
on Sep 19, 2005 at 16:07 UTC ( [id://493189]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|