Managing Processes
import os, subprocess
'HOME'])
os.chdir(os.environ[
# Shell-out. Raises an exception if exit code not zero.
'tar', 'czf', 'docs.tar.gz', 'docs'])
subprocess.check_call([
# Returns output from running shell command:
= subprocess.check_output(['ls', '-l']) some_output