Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 about the Monastery: (13)
As of 2014-07-28 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (206 votes), past polls