Some strange characters appeared on my screen... Probably on Monday 11 of 
August 2003 00:48, Olivier Blin typed:
> Hi
>
> I've started a wrapper of Glib's spawning utilities.
> See
> http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html
>
> I've wrapped 2 functions so far :
>
> gboolean    g_spawn_command_line_async      (const gchar *command_line,
>                                              GError **error);
> This one let you start a program from your pygtk code, it is roughly the
> same as fork() followed by exec().
> (very easy to wrap ...)
>
> gboolean    g_spawn_command_line_sync       (const gchar *command_line,
>                                              gchar **standard_output,
>                                              gchar **standard_error,
>                                              gint *exit_status,
>                                              GError **error);
>
> This one is more interesting for you, it is basically the same as
> popen() (no standard input though)
> (quite simple to wrap)
>
> I can provide my code if anyone is interested, it may even be included
> in pygtk FAQ, because popen() doesn't work as expected with
> gnome-python.

I'm writing once more about this. Could you say something more? I'm still 
having problems with handling program opened using popen2(), because it's 
blocking whole pygtk application.

-- 
_________________________________________________________________________
Michal Chruszcz -=- Souls hacker -=- Seen at http://troll.one.pl/?gallery
To follow the path: look to the master, follow the master,
         walk with the master, see through the master, become the master.

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to