Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: IPC::Open3 woes

by Anonymous Monk
on Sep 08, 2004 at 05:50 UTC ( #389281=note: print w/ replies, xml ) Need Help??


in reply to Re: IPC::Open3 woes
in thread IPC::Open3 woes

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


Comment on Re^2: IPC::Open3 woes

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://389281]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-04 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls