Skip to main content

run_capture

Function run_capture 

Source
fn run_capture(
    cmd: &str,
    timeout: Duration,
    out_path: &Path,
    progress: Option<Style>,
    label: String,
    interrupted: &AtomicBool,
) -> Result<String>
Expand description

Run a shell command to completion or until timeout, capturing combined stdout+stderr to out_path. A fixed-duration workload is expected to be cut off at the timeout; its partial output is still returned.