Macro cmd_lib_macros::spawn[][src]

spawn!() { /* proc-macro */ }

Run commands with/without pipes as a child process, returning a handle to check the final status


let handle = spawn!(ping -c 10 192.168.0.1)?;
// ...
if handle.wait_result().is_err() {
    // ...
}