Benjamin Watine <[EMAIL PROTECTED]>:
> How can I do this ? I would like a function like that :
>
> theFunction ('cat -', stdin=myVar)
>
> Another related question : Is there's a limitation of var size ? I
> would have var up to 10 MB.
import subprocess
myVar = '*' * 10000000
cat = subprocess.Popen('cat',shell = True,stdin = subprocess.PIPE)
cat.stdin.write(myVar)
cat.stdin.close()
cat.wait()
Marko
--
Marko Rauhamaa mailto:[EMAIL PROTECTED] http://pacujo.net/marko/
--
http://mail.python.org/mailman/listinfo/python-list