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

Re^2: Capturing both STDERR and STDOUT without shell redirect

by fullermd (Priest)
on Aug 06, 2009 at 19:18 UTC ( [id://786542]=note: print w/replies, xml ) Need Help??


in reply to Re: Capturing both STDERR and STDOUT without shell redirect
in thread Capturing both STDERR and STDOUT without shell redirect

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://786542]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-23 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found