A module for working with processes.
Basic usage where we try to execute the
cat shell command:
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());Run
Representation of a running or exited child process.
A process builder, providing fine-grained control over how a new process should be spawned.
Describes the result of a process after it has terminated.
The output of a finished process.
Describes what to do with a standard I/O stream for a child process.
Terminates the current process with the specified exit code.
Terminates the process in an abnormal fashion.