[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What's wrong on using Popen's communicate method?

I have the below. I expect to see 'abcd' showing in the notepad window:
import subprocess as sp
p0 = sp.Popen('notepad.exe', stdin=sp.PIPE)
But nothing happens. The notepad is completely empty. What have I missed?


PS. I am using python 3.4 on Windows Vista