subprocess.Popen

class subprocess.Popen(args, bufsize=0, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0)[source]

Methods

__del__([_maxint])
__format__ default object formatter
__init__(args[, bufsize, executable, stdin, ...]) Create new Popen instance.
__new__((S, ...)
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__(() -> int) size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().
_close_fds(but)
_communicate(input)
_communicate_with_poll(input)
_communicate_with_select(input)
_execute_child(args, executable, preexec_fn, ...) Execute program (POSIX version)
_get_handles(stdin, stdout, stderr) Construct and return tuple with IO objects:
_handle_exitstatus(sts[, _WIFSIGNALED, ...])
_internal_poll([_deadstate, _waitpid, ...]) Check if child process has terminated.
_set_cloexec_flag(fd[, cloexec])
_translate_newlines(data)
communicate([input]) Interact with process: Send data to stdin.
kill() Kill the process with SIGKILL
pipe_cloexec() Create a pipe with FDs set CLOEXEC.
poll()
send_signal(sig) Send a signal to the process
terminate() Terminate the process with SIGTERM
wait() Wait for child process to terminate.