Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def Command(command):
  2. cmd = command.split(" ")
  3. p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  4. stdout, stderr = p.communicate()
  5. return [ stdout.strip(), stderr.strip() ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement