Function otter_api_tests::unistd::execvp [−]
pub fn execvp<S>(filename: &CStr, args: &[S]) -> Result<Infallible, Error> where
S: AsRef<CStr>,
Expand description
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
.