Re: GIOChannel and pipes.



On Saturday 05 June 2004 04:33, Claudio Saavedra V. wrote:

I'm trying to write an GTK/GNOME application that uses pipes, and i want to
use GIOChannel for it, but i have no other documentation than the API, and
i can't find examples or codes in the net about it.

Does anyone know (excluding the API) some good start point or has a little
example code that can be usefull to me?

And yes, i have googled a lot :)

You can find a small example that reads stuff from pipes via GIOChannels here:

http://scentric.net/tmp/spawn-async-with-pipes-gtk.c

The programs spawns wget and reads wget's stdout and stderr from pipes (stdout 
being the data retrieved in this case, and stderr being wget's error/status 
output). Maybe not the most brilliant example, but better than nothing ;)

Cheers
 -Tim



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]