I'm tring to spawn a command and read its output. In the sync way, I
find imports.gi.GLib.spawn_command_line_sync is fine. But in the async
way, I cannot find any information on dealing with the unix file
descriptor.
try the code below:
glib = imports.gi.GLib;
cmd = 'uname -a';
Il giorno mar, 13/12/2011 alle 21.11 +0800, binbin ha scritto:
I'm tring to spawn a command and read its output. In the sync way, I
find imports.gi.GLib.spawn_command_line_sync is fine. But in the async
way, I cannot find any information on dealing with the unix file
descriptor.
try the