subprocess.Popen() problem

Jerry Hill malaclypse2 at gmail.com
Tue Jun 26 17:00:22 EDT 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