Skip to main content

run

Function run 

Source
pub fn run(
    program: &str,
    args: &[&str],
    input: Option<&[u8]>,
    output_limit: usize,
    timeout: Duration,
) -> Result<Output, Error>
Expand description

Run one fixed program/argv transaction with bounded input, output, and time.

stdout and stderr each receive their own output_limit. On timeout the complete child process group is killed, closing pipes inherited by helper descendants as well.