Guest User

Untitled

a guest
Feb 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. with open(inputfile,'w') as f:
  2. f.write(cmd_output)
  3.  
  4.  
  5. command_process = subprocess.Popen(
  6. cmd,
  7. shell=shl,
  8. stdin=subprocess.PIPE,
  9. stdout=subprocess.PIPE,
  10. stderr=subprocess.STDOUT,
  11. universal_newlines=True
  12. )
  13.  
  14.  
  15. cmd_output = command_process.communicate()[0]
Add Comment
Please, Sign In to add comment