> module
std::process
spawning and controlling child processes
use std::process; feature process native only
std::process starts child processes and waits for them to finish. A child shares the script's stdin, stdout and stderr, and its current directory and environment.
> functions
> types
A spawned child process.
Like wait, but returns None at once if the child is still running.
> examples
use std::process;
use std::io;
fn main() -> Result<(), str> {
let child = process::spawn("echo", ["hello"])?;
let code = child.wait()?;
io::println("exited with {}", code);
Ok(())
}