Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: start external program getting return code, stdout and stderr

by Athanasius (Monsignor)
on Sep 04, 2012 at 14:49 UTC ( #991636=note: print w/ replies, xml ) Need Help??


in reply to start external program getting return code, stdout and stderr

Hello some_coder, and welcome to the Monastery!

The CPAN module Capture::Tiny will capture the output of STDOUT and STDERR (separately), as well as the return value of the called code. You can then use the return value to decide what (if anything) you want to do with the captured output.

See the recent thread Problem logging STDOUT in perl.

Hope that helps,

Athanasius <°(((><contra mundum


Comment on Re: start external program getting return code, stdout and stderr

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991636]
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-27 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (177 votes), past polls