child process
A program started by another program, which waits for it or talks to it.
std::process::Command spawns a child process; output() collects its stdout, stderr and exit status, spawn() returns a Child to wait on or talk to through pipes.
Loading interactive…
Examples
Command::new("git").arg("--version").output()?runs git, waits for it, and returns its stdout, stderr and exit status.If the program doesn't exist,
output()returns anErrwhosekind()isNotFound.
See also