Function run_command

Source
pub fn run_command<A: IntoIterator<Item = S> + Clone, S: AsRef<OsStr>>(
    prog: &str,
    superuser: bool,
    args: A,
) -> CommandOutput
Expand description

Run a command and return the output, status code, and whether the command succeeded or not