exec


Description:

public static bool exec (string cmd, string[] args)

Executes an external command and waits for completion.

Example:

    bool ok = Process.exec ("sh", { "-c", "exit 0" });
assert (ok == true);

Parameters:

cmd

command path or executable name.

args

command arguments.

Returns:

true when the process exits with status 0.