PyDocs

Nav

Generic Operating System Services

spawnvp

os

function (source) UnixWindowsnot WASInot Androidnot iOS
  • spawnvp(mode, file, args)
spawnvp(mode, file, args) -> integer

Execute file (which is looked for along $PATH) with arguments from
args in a subprocess.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it.
Changed in 3.6, 3.14
  • 3.6: Accepts a path-like object.
  • 3.14: Soft deprecated. The subprocess module is recommended instead.
0 Examples
No examples for os/spawnvp.
See Also
No see-alsos for os/spawnvp
0 Notes
No notes for spawnvp