<?xml version="1.0" encoding="windows-1252"?>
<node id="818674" title="Re: How to get output from a spawned cmd prompt?" created="2010-01-21 05:16:37" updated="2010-01-21 05:16:37">
<type id="11">
note</type>
<author id="62157">
tokpela</author>
<data>
<field name="doctext">
&lt;p&gt;
I would use the &lt;a href="http://search.cpan.org/search?query=IPC%3A%3ARun3&amp;mode=all"&gt;IPC::Run3&lt;/a&gt; CPAN module to do this.
&lt;/p&gt;
&lt;p&gt;
The run3 routine will allow you to capture the STDOUT to a variable that you can then use to check the output
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;
run3($cmd, \$stdin, \$stdout, \$stderr);
&lt;/code&gt;
&lt;/p&gt;
</field>
<field name="root_node">
818653</field>
<field name="parent_node">
818653</field>
</data>
</node>
