Skip to main content

exec_cmd

Function exec_cmd 

Source
pub fn exec_cmd<T: AsRef<OsStr> + Debug, U: AsRef<OsStr> + Debug>(
    cmd: T,
    args: &[U],
    time_limit: Duration,
) -> Option<CommandOutput>
Expand description

Execute a command and return the output on stdout and stderr if successful