flipper has asked for the wisdom of the Perl Monks concerning the following question:
socketpair($r_stdout, $w_stdout, AF_UNIX, SOCK_STREAM, PF_UNSPEC); socketpair($r_stderr, $w_stderr, AF_UNIX, SOCK_STREAM, PF_UNSPEC); if(fork()){ close $w_stdout; #read from $r_stdout etc }else{ my $so_fd=fileno($w_stdout); open STDOUT, ">&$so_fd"; exec('something') or die; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: working with files by number
by flipper (Beadle) on Mar 24, 2009 at 16:42 UTC | |
by ikegami (Patriarch) on Mar 24, 2009 at 16:53 UTC |