Xref: utzoo comp.unix.questions:24160 comp.windows.x:25060 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!ucsd!ucrmath!ucrmath.ucr.edu!yakker From: yakker@ucrmath.ucr.edu (matt robinson) Newsgroups: comp.unix.questions,comp.windows.x Subject: Exec/Fork/Stdout (Eek! Help!) Message-ID: <7890@ucrmath.ucr.edu> Date: 30 Jul 90 00:48:48 GMT Sender: yakker@ucrmath.ucr.edu Followup-To: comp.unix.questions Organization: University of California, Riverside Lines: 21 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@ucrmath.ucr.edu 3023yakk@ucsbuxa.ucsb.edu