Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re^4: Use of IPC::Run rather than system()

by gmarler (Sexton)
on Jul 17, 2003 at 02:04 UTC ( [id://275086]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($ofh) = select(STDOUT); $| = 1; select($ofh);
    $ofh = select(STDERR); $| = 1; select($ofh);
    ...
        '>', sub { $out .= $_[0]; print $_[0] },
        '2>', sub { $err .= $_[0]; print $_[0] },
        );
    
  2. or download this
    use IPC::Run qw(run);
    
    ...
        '2>', '>pty>'
        );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-23 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found