pub unsafe fn proc_exec(name: &str, args: &str)
Expand description

execve() executes the program referred to by pathname. This causes the program that is currently being run by the calling process to be replaced with a new program, with newly initialized stack, heap, and (initialized and uninitialized) data segments

If the named process does not exist then the process will fail and terminate

Parameters

  • name - Name of the process to be spawned
  • args - List of the arguments to pass the process (entries are separated by line feeds)