|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^4: redirecting output to STDERR and STDOUTby TilRMan (Friar) |
| on Feb 23, 2005 at 01:08 UTC ( [id://433592]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||