Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def runCmd(cmd=''):
  2. '''
  3. Runs cmd
  4. '''
  5. proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
  6. (out, err) = proc.communicate()
  7. return out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement