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);

Replies are listed 'Best First'.
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 browsing the Monastery: (12)
As of 2016-08-24 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (345 votes). Check out past polls.