Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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??


in reply to Capturing both STDERR and STDOUT without shell redirect

Check out IPC::Run3

  • Comment on Re: Capturing both STDERR and STDOUT without shell redirect

Replies are listed 'Best First'.
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?
[Corion]: Meh. I need to find myself a better "programming" feed than r/programming (which is just HackerNews reposts and advertisements, very little code). Maybe I should select a list of links that I liked on r/programming and then google for ...
[Corion]: ... an aggregator site that also listed (ideally) all of these links once. And maybe also have an exclude list to blacklist some of the most spammy links that the site may have never mentioned at all
[marto]: I gave up reading HN at all, and feel much better for it :P
[Corion]: Now, how to best automate that Google search ... :-)
[Corion]: marto: Yeah, I'm also short of not reading it at all. I already stopped reading it in the morning because it gave me a foul mood.
[Corion]: The good posts on HN are the non-computing posts. Most of the other stuff is maybe relevant to you if you are 20 and live in Silicon Valley...
[Corion]: Two attributes that don't describe me.
[Corion]: Maybe I should also write a curator for HN or simply not read it anymore, like you do.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-07-24 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (354 votes). Check out past polls.