Python+Expect+Win32 = Not Possible?

gamename namesagame-usenet at yahoo.com
Thu Sep 13 13:03:17 CEST 2007


On Sep 13, 1:42 am, half.ital... at gmail.com wrote:
> On Sep 12, 9:27 pm, gamename <namesagame-use... at yahoo.com> wrote:
>
> > Hi,
>
> > Is it still the case there is no practical Expect-like module for
> > win32? I know that cygwin can support pexpect, but that isn't an
> > option here --- I have to use a native win32 Python version.
>
> > Are there alternatives, or is it simply not an option to replicate
> > Expect on win32 with python?
>
> > All I'm trying to do is start a couple processes, wait for each to say
> > "done" on stdout and then quit (or timeout if something went wrong).
>
> > TIA,
> > -T
>
> I had planned on using telnet to do the same thing on windows.  I
> don't think I ever proved it, but I'm pretty sure it will work.

Thanks, Sean.  The problem is that telnet is generally disabled on
most hosts nowadays.

>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52228
>
> ~Sean





More information about the Python-list mailing list