Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 meditating upon the Monastery: (5)
As of 2014-10-01 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (6 votes), past polls