Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: STDOUT redirects and IPC::Open3

by salva (Abbot)
on Oct 20, 2011 at 08:19 UTC ( #932585=note: print w/replies, xml ) Need Help??


in reply to Re^3: STDOUT redirects and IPC::Open3
in thread STDOUT redirects and IPC::Open3

Note that I'm addressing the Unix side of the issue only

Oops, for some reason, I got the impression the thread was about Windows.

I can still see one issue on Unix when passing '-' as the command. In that case, the FOO handler (such that fileno(FOO) == 1) may be being used on the child Perl code. Though, this can be worked around easily just checking that the command is not '-'.

Anyway, if you just want a Unix solution, why don't to use POSIX::dup2?.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932585]
help
Chatterbox?
[LanX]: consideration is a democratic process
[Discipulus]: i'm sure germans has humor: i see them laughing
[Discipulus]: or it was beer?
Discipulus grin

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2017-04-27 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (514 votes). Check out past polls.