Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // #![allow(unused)]
- fn main() {
- use std::process::Command;
- let mut child = Command::new("/bin/cat")
- .arg("file.txt")
- .spawn()
- .expect("failed to execute child");
- let ecode = child.wait()
- .expect("failed to wait on child");
- assert!(ecode.success());
- }
Add Comment
Please, Sign In to add comment