Skip to main content

exec

Function exec 

Source
pub fn exec<I, S>(program: &str, args: I) -> Result<ExecOutput, String>
where I: IntoIterator<Item = S>, S: AsRef<str>,
Expand description

Run program args... to completion in-process and capture its output. Errors carry the failure reason (e.g. the program was not found).