Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def run_command(cmd):
- import subprocess
- return subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE).communicate()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement