On Thu, May 7, 2009 at 5:53 PM, Frederik wrote:
> You must mark output parameters with "out":
>
> Process.spawn_sync(/* ... */, out output);
>
>
> Best Regards,
>
> Frederik
Thanks! Using spawn_command_line_sync it works fine :)
___
Vala-list mailing li
Jan Niklas Hasse wrote:
> On Wed, May 6, 2009 at 6:55 PM, Levi Bard
> wrote:
>> One of GLib.Process.spawn*?
>
> Thanks, that's what I'm looking for. I tried:
>
> string output;
> Process.spawn_sync(null, {"ls", "/"}, null,
> GLib.SpawnFlags.STDERR_TO_DEV_NULL, null, output);
> stdout.printf("%s\
On Wed, May 6, 2009 at 6:55 PM, Levi Bard
wrote:
> One of GLib.Process.spawn*?
Thanks, that's what I'm looking for. I tried:
string output;
Process.spawn_sync(null, {"ls", "/"}, null,
GLib.SpawnFlags.STDERR_TO_DEV_NULL, null, output);
stdout.printf("%s\n", output);
but I'm getting:
error: Argu
> What is the right way to open an external command and get its output in Vala?
One of GLib.Process.spawn*?
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
What is the right way to open an external command and get its output in Vala?
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list