On Son, 31 Okt 1999, David Whitehurst wrote:
> Anyone:
>
> I am into an application and I issue a system(cmd); from the
> GTK Application. Any ideas on how to display stdout on the text
> widget. I thought that I could write or redirect the output of the
> command to a file, read that file, display the text, and then remove the
> temp file. This seems a little overkill. Does anyone have any better
> ideas? I have my command that I issue, however, the output is sent to
> the window that the application was started in. Please, if anyone has
> any ideas, I'm all ears.
>
If you use pipe(2) and dup(2), you can set fd's 0 and 1 (stdin and stdout) to
pipes that you can read from, before you fork and exec.
Joseph Malicki
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null