Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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 exploiting the Monastery: (3)
As of 2015-10-04 23:45 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (105 votes), past polls