/ Published in: Python
Expand |
Embed | Plain Text
def shell(*cmd): pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = pipe.communicate() return pipe.returncode, stdout, stderr
You need to login to post a comment.
