Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Capturing both STDERR and STDOUT without shell redirect

by nimdokk (Vicar)
on Aug 06, 2009 at 13:58 UTC ( #786435=note: print w/replies, xml ) Need Help??

in reply to Capturing both STDERR and STDOUT without shell redirect

While there might be better ways to do it, the way I found is as follows:

At the start of the script redirect STDOUT and STDERR to a file. Make sure that the program you call is set to print it's output to STDOUT. Then when Perl executes the program, the output is captured into the file. This works on Unix and Windows (we run on both systems). Look in the Camel book for how to redirect STDOUT and STDERR.

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://786435]
[Lady_Aleena]: Discipulus, Hello there. How are you?
[Lady_Aleena]: Good GUH Discipulus! Do you have enough links there?
[Discipulus]: here quite well thanks. still alive. Unfortunately I have the 64Kb limit
Discipulus now is read a book to my daugther time. Just after she and mother stop yelling in the bathroom
[Lady_Aleena]: See you later, Discipulus. Have fun reading to your daughter.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-09-24 18:25 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (274 votes). Check out past polls.