pub fn exec(cmd: impl AsRef<OsStr>, args: &[&str]) -> Result<String, String>Expand description
Executes cmd with args as parameters, waits for it to exit, and
returns its stdout, trimmed, and escaped with
escape_ascii.
ยงErrors
Returns a descriptive error string if it fails to execute the command or if the command exits with a non-zero status.