Executing system command in Vala
OK, got it : Glib.Process.spawn_command_line_sync.
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
OK, got it : Glib.Process.spawn_command_line_sync.
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