Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 wandering the Monastery: (8)
As of 2014-12-20 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (95 votes), past polls