[ create a new paste ] login | about

Link: http://codepad.org/78BzQtFY    [ raw code | fork ]

Python, pasted on Dec 21:
1
2
3
4
5
import sys, subprocess, cStringIO

def run_shell(cmd):                                                                                                                                                                                 
     p = subprocess.Popen(cmd, shell=True, stdout=sys.stdout, stderr=sys.stderr)
     return p.wait()


Create a new paste based on this one


Comments: