Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

open3 but for n file descriptors

by tange (Initiate)
on Jul 19, 2013 at 16:46 UTC ( #1045381=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        echo foo # Can be captured
        echo foo >&2 # Can be captured
        echo foo >&3 # Cannot be captured (with open3)
    
  2. or download this
        # Currently mixes output due to fd 3 not buffered
        parallel 'echo {} start >&3;sleep 10;echo {} end >&3' ::: a b c 3>
    +out.file
    
  3. or download this
        # This currently works
        parallel 'echo {} start >&2;sleep 10;echo {} end >&2' ::: a b c 2>
    +out.file
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1045381]
Approved by hdb
Front-paged by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2014-04-21 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (495 votes), past polls