-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Dec 27, 2006 at 10:33:38AM +0200, Zeeshan Ali wrote: > On 12/27/06, Tony Freeman <[EMAIL PROTECTED]> wrote: > > Hello, > > Hi! > > > I need some example code or a tutorial for how to pipe output from a > > process to a GtkTextBuffer. > > > > The idea of this program is to spawn off 6 or more ssh commands and have > > the output go to it's own textbuffer in it's assigned notebook page. > > Just a thought: Wouldn't it be a better idea to use a library > instead of a command when one is available: libssh > (http://www.0xbadc0de.be/libssh:libssh).
Thanks. Didn't know about that. Just from a cursory glance at the doc: * what I like clean, abstract interface * what I don't namespace pollution (besides the prefix ssh_ they use options_ channel_ and what not). In Tony's case, he might have to extract the fd from the SSH_SESSION object (is there an interface for that?) to be able to stuff it into a GIOChannel (not very difficult. I've done it with a database socket). On the plus side, Tony would just have *one* socket to watch (read and write side), and errors would (assumedly) come through call results or whatever. Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFFkj8cBcgs9XrR2kYRAlN0AJwKODpdT3BJZ9F2UExgZH2k+0tU5wCfZp/E g0VzNvQRfiGJr8tt1Iu6jJ8= =cyCm -----END PGP SIGNATURE----- _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list