Re: Communicating with a program using subprocess
On Thu, 17 Jun 2010 11:22:37 +0200, Laurent Verweijen wrote: > This is easy to understand, but I want to pipe it's input/output > by another python program. (I will show what I am doing on the > console to test it) > > >>> from subprocess import * > >>> p =
Communicating with a program using subprocess
I have a file called increment.py as follows: #!/usr/bin/python n = 0 while True: n = int(raw_input(n)) + 1 This is easy to understand, but I want to pipe it's input/output by another python program. (I will show what I