public
Created

  • Download Gist
gistfile1.py
Python
1 2 3 4 5 6 7 8 9 10
import subprocess
 
p = subprocess.Popen("cat", stdin=subprocess.PIPE, stdout=subprocess.PIPE)
 
chunk = 1024
count = 0
while True:
p.stdin.write("0" * chunk)
count += chunk
print count

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.