Run a shell command.
command (str) – Shell command to run.
check (bool) – Raise on non-zero exit code (default True).
True
capture_output (bool) – Capture stdout/stderr instead of streaming to the console.
Completed process, with stdout/stderr populated when capture_output is True.
stdout
stderr
capture_output
subprocess.CompletedProcess