Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Capturing both STDERR and STDOUT without shell redirect

by tokpela (Chaplain)
on Aug 06, 2009 at 13:59 UTC ( #786436=note: print w/ replies, xml ) Need Help??

Comment on Re: Capturing both STDERR and STDOUT without shell redirect
Re^2: Capturing both STDERR and STDOUT without shell redirect
by fullermd (Priest) on Aug 06, 2009 at 19:18 UTC

    Seconded. I've made use of it in several scripts where I want to get a hold of all the bits of output, not mashed together, as well as the return value. Looking at one for a quick sample:

    # Way earlier use IPC::Run3; # Run it my (@out, @err); run3 \@cmd, \undef, \@out, \@err or die "run3 failed: $!"; # Return val my $rval = $? >> 8;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-03 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls