pipes and stderr
Ken Lee
klee at wsl.dec.com
Sat Mar 17 10:07:59 AEST 1990
In article <RAZDAN.90Mar16160133 at chanakya.oakhill.uucp>,
razdan at chanakya.oakhill.uucp (Anshuman Razdan) writes:
> My problem is how to trap the the stderr coming from the child and
direct them to
> stdin of the parent.
Presumably you are using dup() or dup2() to map the child's stdout to
your pipe. You can do another dup2 to map stderr to the same pipe.
Alternatively, you can open a separate pipe to handle the stderr. If
you use 2 pipes, you can use select() or XtAppAddInput() on the parent
side to manage them.
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee at wsl.dec.com
uucp: uunet!decwrl!klee
More information about the Comp.unix.questions
mailing list