Subprocess Library
suggest changeSyntax
subprocess.call(args, *, stdin=None, stdout=None, stderr=None, shell=False, timeout=None)
subprocess.Popen(args, bufsize=-1, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=True, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0, restore_signals=True, start_new_session=False, pass_fds=())
Parameters
args
| A single executable, or sequence of executable and arguments -'ls'
,['ls', '-la']
shell
| Run under a shell? The default shell to/bin/sh
on POSIXcwd
| Working directory of the child process
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents