Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p=subprocess.Popen([cmd], stdout=subprocess.PIPE, shell=True)
- (output,errput)=p.communicate() #waits until the process is terminated
- return output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement