Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Capturing stderr

by jthalhammer (Friar)
on Dec 31, 2005 at 03:04 UTC ( #520101=note: print w/ replies, xml ) Need Help??


in reply to Re: Capturing stderr
in thread Capturing stderr

That looks painful. Is there any reason that IPC::Open3 wouldn't work?

-Jeff


Comment on Re^2: Capturing stderr
Re^3: Capturing stderr
by Celada (Monk) on Dec 31, 2005 at 06:33 UTC

    IPC::Open3 will indeed simplify the first half of the code, which deals with the piping and the forking. Sorry for recommending the long winded solution :-( . It won't help with reading the outputs afterwards though, you still have to use a select loop to read interleaved input from both handles. That's why ikegami's recommentation of IPC::Run looks like it's even easier (thanks!).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-12-17 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (40 votes), past polls