subprocess.call(args, *, stdin=None, stdout=None, stderr=None, shell=False, timeout=None)
Run the command described by args. Wait for command to complete, then return the returncode
attribute.
This is equivalent to:
run(...).returncode
(except that the input and check parameters are not supported)
The arguments shown above are merely the most common ones. The full function signature is largely the same as that of the Popen
constructor - this function passes all supplied arguments other than timeout directly through to that interface.
Note
Do not use stdout=PIPE
or stderr=PIPE
with this function. The child process will block if it generates enough output to a pipe to fill up the OS pipe buffer as the pipes are not being read from.
Changed in version 3.3: timeout was added.
Please login to continue.