Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open(inputfile,'w') as f:
- f.write(cmd_output)
- command_process = subprocess.Popen(
- cmd,
- shell=shl,
- stdin=subprocess.PIPE,
- stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT,
- universal_newlines=True
- )
- cmd_output = command_process.communicate()[0]
Add Comment
Please, Sign In to add comment