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

Re: How to get output from a spawned cmd prompt?

by tokpela (Chaplain)
on Jan 21, 2010 at 10:16 UTC ( #818674=note: print w/ replies, xml ) Need Help??


in reply to How to get output from a spawned cmd prompt?

I would use the IPC::Run3 CPAN module to do this.

The run3 routine will allow you to capture the STDOUT to a variable that you can then use to check the output

run3($cmd, \$stdin, \$stdout, \$stderr);


Comment on Re: How to get output from a spawned cmd prompt?
Download Code
Re^2: How to get output from a spawned cmd prompt?
by BioLion (Curate) on Jan 21, 2010 at 11:17 UTC

    OP might also find Capture::Tiny useful.

    Just a something something...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2015-07-06 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (73 votes), past polls