PExpect on Windows System Using Cygwin
davea at ieee.org
Fri Sep 25 12:09:07 CEST 2009
Sean DiZazzo wrote:
> On Sep 24, 4:37 pm, Dave Angel <da... at ieee.org> wrote:
>> Why not just use the subprocess module? It's built into the Windows
>> distribution, and doesn't need cygwin.
> Can subprocess pass things like passwords to running processes like
> pexpect can?
I don't know what pexpect is/was capable of, since it's not apparently
part of the current Python distributions. I thought it had the ability
to fork or spawn a child process, with pipes connected.
Anyway, subprocess can launch a new process, with pipes optionally
connected back to your code. I don't think it can attach to an
There are things in pywin32 that might help (even for controlling GUI
programs), but I suspect there'd be a big learning curve. And of course
it'd then be very Windows-dependent.
pywin32 - http://python.net/crew/skippy/win32/Downloads.html
or get it as part of the ActiveState python distro.
More information about the Python-list