|
|
| There's more than one way to do things | |
| PerlMonks |
Re^4: redirecting output to STDERR and STDOUTby TilRMan (Friar) |
| on Feb 23, 2005 at 06:08 UTC ( #433592=note: print w/ replies, xml ) | Need Help?? |
|
I can confirm that /dev/stdin and friends work on Linux. If you are on an otherwise unixy system that does not have these, you should be able to create a FIFO (a.k.a. named pipe) for each stream, spawn child processes to pipe them to STDOUT and STDERR, and hand the FIFO names to C. See "Named Pipes" in perlipc.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||