Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. p=subprocess.Popen([cmd], stdout=subprocess.PIPE, shell=True)
  2. (output,errput)=p.communicate() #waits until the process is terminated
  3. return output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement