Re: [Vala] Execute external command

2009-05-07 Thread Jan Niklas Hasse
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

Re: [Vala] Execute external command

2009-05-07 Thread Frederik
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\

Re: [Vala] Execute external command

2009-05-07 Thread Jan Niklas Hasse
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

Re: [Vala] Execute external command

2009-05-06 Thread Levi Bard
> 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

[Vala] Execute external command

2009-05-06 Thread Jan Niklas Hasse
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