Exec/Fork/Stdout (Eek! Help!)
matt robinson
yakker at ucrmath.ucr.edu
Mon Jul 30 10:48:48 AEST 1990
I have been working on a program in X windows that needs to
fork off a child process, exec the process, and send the data
from stdout/stderr back to the parent, and produce it into
a window. Now, the hard part about this is that I'M LOST! :)
If anyone can offer any assistance, the problem (more specifically)
is this: I have a compiler that produces specific error messages
that need to be displayed to the user. In order to do this, we
want to take the stdout and stderr and give it back to the window,
at the same time executing the compiler, and having it produce its
own code. I assume (I might be wrong..) that the exec'd process
needs to be forked off as a child, which will return the messages
to the parent using pipes. If anyone can show some example (in any
degree) on what can be done to accomplish this, I would be in their
debt. If you have a piece of code to show this, that would be even
more helpful. Thanks for your time.
Matt D. Robinson
yakker at ucrmath.ucr.edu
3023yakk at ucsbuxa.ucsb.edu
More information about the Comp.unix.questions
mailing list