Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Command(command):
- cmd = command.split(" ")
- p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- stdout, stderr = p.communicate()
- return [ stdout.strip(), stderr.strip() ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement