Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment