On this page
posix.execve
Prev: posix.execv | Up: posix | Next: posix.fchdir
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.execve
Tags: #public #python3 #stdlib #posix
Import
import posix
from posix import execve
Signature & Overview
posix.execve(path, argv, env)
Execute an executable path with arguments, replacing current process.
Usage
import os
# Like os.execv(), with an explicit environment mapping
assert callable(os.execve)
Gotchas
- Replaces the current process: Does not run
finally:blocks or flush buffers—flushsys.stdoutfirst.
REPL Inspect
from posix import execve
help(execve)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/execv Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/fchdir Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/abort Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chflags Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chmod shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chown shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chroot shared tags: #posix, #stdlib