good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi,
I am new to open3 and perldoc is too vague to understand
I am trying a simple unix command to run in open3. open3($stdin, $stdout, $stderr, "gcp -vpfR $xrc $dst") What i need is -- I want to caputre STDOUT until gcp finishes or there is something on STDERR (on disk full case etc). while (<$stdout>) { print "$_"; } @stderr = <$stderr>; if (@stderr) { dir "ERROR: gcp\n" } BUT this is not working -- any suggestions In reply to Re^2: IPC::Open3 woes
by Anonymous Monk
|
|