Q:

Executing system command in Vala

I would like to execute a command (like ls) in Vala, like the Python os.system function, or, better, the popen function. Any idea ?

A:

OK, got it : Glib.Process.spawn_command_line_sync.

A:

It's best to use the package posix.
Then, just do Posix.system("command") which returns an int.
http://www.valadoc.org/posix/Posix.system.html

