import subprocess subprocess.call(["ps", "-ef"]) subprocess.Popen(["ps", "-ef"])