in reply to Re^2: How to share streams between processes
in thread How to share streams between processes
If you need the output from both stdout and stderr via a single stream:
#main my $kid = open my $fh, "theExternalProcess 2>&1 |" or die $!; while( <$fh> ) { ## Read the output from theExternalProcess } ## You'll end up here when the kid goes away
If you need to keep stdout and stderr separate, then see IPC::Open3 or IPC::Run.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to share streams between processes
by rapide (Beadle) on Sep 06, 2008 at 10:58 UTC |