Advertisement
rfmonk

subprocess_check_output.py

Jan 31st, 2014
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. import subprocess
  2.  
  3. output = subprocess.check_output(['ls', '-1'])
  4. print 'Have %d bytes in output' % len(output)
  5. print output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement