runcmd.py 169 Bytes
import subprocess

def runProcess(cmd):
    out = subprocess.Popen(cmd, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
    return out.communicate()[0], out.returncode