Skip to main content

run_command

Function run_command 

Source
pub fn run_command(command: &str, timeout: Duration) -> Result<String, String>
Expand description

Runs command through the shell, killing it after timeout. Returns its output, or why it failed (the last line of its stderr if any).