in reply to Re: Using SYSTEM2 on Windows
in thread Using SYSTEM2 on Windows
use IPC::Run3; use IO::Pipe; my $cmd = "cmd /D/C dir"; my $out = new IO::Pipe; $out->reader(); my $err = new IO::Pipe; $err->reader(); run3 $cmd, $out, $err; print "OUT: $out ERR: $err\n"; map {print "$_\n"}<$out>; map {print "$_\n"}<$err>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using SYSTEM2 on Windows
by ikegami (Patriarch) on May 27, 2009 at 20:38 UTC | |
by rthawkcom (Novice) on May 27, 2009 at 20:55 UTC |