execute

Function execute 

Source
pub fn execute<S, P>(exe: S, args: &[P]) -> Result<Child>
where S: AsRef<OsStr> + Debug, P: AsRef<OsStr> + Debug,
Expand description

Execute a command with options in a fork with setsid. If the SETSID application isn’t there, call the program directly. but the program may be closed if the parent (fm) is stopped. Returns an handle to the child process.

§Errors

May fail if the command can’t be spawned.