PDA

View Full Version : How do I run terminal commands in VALA?



valaprgrmr
October 5th, 2009, 01:44 PM
Hello.
I'd like to run some gksudo commands in Vala.
How do I do that?

Thanks!!:)

engla
October 5th, 2009, 05:04 PM
Use GLib. GLib is your platform when using vala, and there is a convenient website (though not complete) to browse documentation here:

GLib.Process.spawn_command_line_async
(http://references.valadoc.org/glib-2.0/GLib.Process.spawn_command_line_async.html)

valaprgrmr
October 10th, 2009, 12:16 AM
Thanks it works for me, but I'd like to get the output.
How do I do that?

Thanks.:):)