Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def runCmd(cmd=''):
- '''
- Runs cmd
- '''
- proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
- (out, err) = proc.communicate()
- return out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement