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);
In reply to Re: How to get output from a spawned cmd prompt?
by tokpela
in thread How to get output from a spawned cmd prompt?
by Xhings
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |