int system_run_cmd(const char *cmd, long ms_timer)
Runs the given command in the background, waits for it to finish and returns its exit code.
char * system_get_cmd_output(char **argv, long ms_timer, bool always_wait)
Runs the command and returns the output, or NULL.