1 2 3 4 5 6
use std::process::{exit, Command, Stdio}; fn main() { let status = Command::new("touch").arg("post").status().expect("hello"); assert!(status.success()); }