spawn!() { /* proc-macro */ }Expand description
Run commands with/without pipes as a child process, returning CmdChildren result.
let mut handle = spawn!(ping -c 10 192.168.0.1)?;
// ...
if handle.wait().is_err() {
// ...
}spawn!() { /* proc-macro */ }Run commands with/without pipes as a child process, returning CmdChildren result.
let mut handle = spawn!(ping -c 10 192.168.0.1)?;
// ...
if handle.wait().is_err() {
// ...
}