pub fn exec(command: &str) -> Error {
    Command::new("sh")
        .arg("-c")
        .arg(&command)
        .stdin(Stdio::null())
        .stdout(Stdio::null())
        .spawn()?;
    Ok(())
}
/// Sends command for execution
/// Assumes STDIN/STDOUT unwanted.
Sends command for execution
Assumes STDIN/STDOUT unwanted.
Sends command for execution Assumes STDIN / STDOUT unwanted .
pub fn exec(command: &str) -> Error {
    Command::new("sh")
        .arg("-c")
        .arg(&command)
        .stdin(Stdio::null())
        .stdout(Stdio::null())
        .spawn()?;
    Ok(())
}
pub fn exec ( command : & str ) -> Error { Command :: new ( " " ) . arg ( " " ) . arg ( & command ) . stdin ( Stdio :: null ( ) ) . stdout ( Stdio :: null ( ) ) . spawn ( ) ? ; Ok ( ( ) ) }
Sends command for execution
Assumes STDIN/STDOUT unwanted.
Sends command for execution Assumes STDIN / STDOUT unwanted .
command
&str
command
&str