Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess
- output = subprocess.check_output(['ls', '-1'])
- print 'Have %d bytes in output' % len(output)
- print output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement