readme_run/readme_run.rs
1use std::time::Duration;
2
3use bio_tools::run::{CommandSpec, RunLogSpec, run};
4
5fn main() -> Result<(), Box<dyn std::error::Error>> {
6 let command = CommandSpec::new("opendde")
7 .args(["predict", "input.yaml"])
8 .current_dir("work")
9 .timeout(Duration::from_secs(600))
10 .run_log(RunLogSpec::new("process_executables/run_logs", "opendde").artifact("."));
11
12 let output = run(&command)?;
13 println!("{}", output.stdout_lossy());
14 Ok(())
15}