Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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>
  3. or download this
        # This currently works
        parallel 'echo {} start >&2;sleep 10;echo {} end >&2' ::: a b c 2>

Log In?

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
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2016-10-26 13:45 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (341 votes). Check out past polls.