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

Re^2: Capturing stderr

by Zadeh (Beadle)
on Dec 30, 2005 at 23:48 UTC ( [id://520086]=note: print w/replies, xml ) Need Help??


in reply to Re: Capturing stderr
in thread Capturing stderr

Yeah, I'd like to capture them separately. That looks pretty involved though... seems like there should be a simpler way. I'll try that for now though, thanks.

Replies are listed 'Best First'.
Re^3: Capturing stderr
by 0xbeef (Hermit) on Dec 31, 2005 at 01:08 UTC
    I once asked a similar question in Redirecting stdout/stderr to pipe. Thelonius described a method in (Re: Redirecting stdout/stderr to pipe) that captures stdout as well as stderr (seperately) to array references (see the @$outref and @$errref portions of the code).

    The code also includes detection of commands that have been running for too long or when the array's output size exceeds $g_maxlines lines.

    0xbeef

Re^3: Capturing stderr
by ikegami (Patriarch) on Dec 31, 2005 at 01:35 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-23 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found