Alan Cox wrote:
> > 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
>
> You can do exactly that. You can also use the pipe functionality (eg popen())
> This forks the underlying program and you can specify that its stdout is a
> pipe. You read from the pipe and you get its output.
>
> Take a look at "man popen"
>
> Finally the gnome widgets include a widget called zvt. This is what is used
> to put things like a shell in a window in gnome-terminal.
>
> Alan
>
> --
> To unsubscribe:
> mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
Alan,
Thanks. I am using KDE and I am doing everything using GTK, so I will check the
popen() function. Thanks again. This sounds like what I was looking for.
David
[EMAIL PROTECTED]
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null