Re: Running an interactive subprocess with Popen

2009-04-10 Thread norseman
David Liang wrote: Hello, Sorry for the newbie question. How do I run a program that could block, waiting for user input, using subprocess.Popen? For example, from subprocess import * def foo(): a = Popen(['python'] ...) I want to be able to get input from the user and send input to the su

Re: Running an interactive subprocess with Popen

2009-04-10 Thread edexter
On Apr 10, 2:56 am, "Diez B. Roggisch" wrote: > David Liang schrieb: > > > > > > > Hello, > > Sorry for the newbie question. How do I run a program that could > > block, waiting for user input, using subprocess.Popen? For example, > > > from subprocess import * > > > def foo(): > >     a = Popen([

Re: Running an interactive subprocess with Popen

2009-04-10 Thread Diez B. Roggisch
David Liang schrieb: Hello, Sorry for the newbie question. How do I run a program that could block, waiting for user input, using subprocess.Popen? For example, from subprocess import * def foo(): a = Popen(['python'] ...) I want to be able to get input from the user and send input to the

Running an interactive subprocess with Popen

2009-04-09 Thread David Liang
Hello, Sorry for the newbie question. How do I run a program that could block, waiting for user input, using subprocess.Popen? For example, from subprocess import * def foo(): a = Popen(['python'] ...) I want to be able to get input from the user and send input to the subprocess, printing st