subprocess.Popen() problem

Jerry Hill malaclypse2 at gmail.com
Tue Jun 26 23:00:22 CEST 2007


On 6/26/07, 7stud <bbxx789_05ss at yahoo.com> wrote:
> p.stdin.write("hello")

You need to add the linefeed, otherwise your mytest.py process is
still waiting for you to finish typing.  So, use this instead:

p.stdin.write("hello\n")

-- 
Jerry



More information about the Python-list mailing list