Function nix::unistd::execvp[][src]

pub fn execvp<S: AsRef<CStr>>(filename: &CStr, args: &[S]) -> Result<Infallible>

Replace the current process image with a new one and replicate shell PATH searching behavior (see exec(3)).

See ::nix::unistd::execve for additional details. execvp behaves the same as execv except that it will examine the PATH environment variables for file names not specified with a leading slash. For example, execv would not work if “bash” was specified for the path argument, but execvp would assuming that a bash executable was on the system PATH.