
Open(command |) and stderr
Hello,
I'm looking for a piece of code that opens a pipe and does not only
send stdout, but also sends stderr of the command to the pipe. Of course,
I know that I can do open(command 2>1 |) but in this case, /bin/sh is
used to evaluate the command and I'm loosing control over possible error codes
returned by exec (this way it is very hard to determine if the command does
not exist).
Best regards,
Frank
--
----------------------------------------------------------------------------
Frank Volf - Stichting Internet Access Eindhoven - Digitale Stad Eindhoven
----------------------------------------------------------------------------
----------------------------------------------------------------------------
IAE Public Access Unix System - Dial +31.40.439436 and login as new.
----------------------------------------------------------------------------