Guest User

Untitled

a guest
Nov 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // #![allow(unused)]
  2. fn main() {
  3. use std::process::Command;
  4.  
  5. let mut child = Command::new("/bin/cat")
  6. .arg("file.txt")
  7. .spawn()
  8. .expect("failed to execute child");
  9.  
  10. let ecode = child.wait()
  11. .expect("failed to wait on child");
  12.  
  13. assert!(ecode.success());
  14. }
Add Comment
Please, Sign In to add comment