runcmd.py 169 Bytes Edit Raw Blame History 1 2 3 4 5 import subprocess def runProcess(cmd): out = subprocess.Popen(cmd, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) return out.communicate()[0], out.returncode