Skip to main content

run_command_timeout

Function run_command_timeout 

Source
pub fn run_command_timeout(
    program: &str,
    args: &[&str],
    timeout_secs: u64,
) -> Result<Output>
Expand description

Run a command with a timeout. On timeout the process is killed and an error is returned.