From: Steve Holden on
Nathan Farrar wrote:
> Hello Community,
>
> Recently I've been automating lots of network operations tasks via
> simple python scripts. Originally, I utilized paramiko but found that
> the module had issues working with cisco equipment. I switched to
> pexpect and things have worked wonderfully since (I've been running this
> scripts in a Linux environment). However, I was just tasked to get
> these scripts running in a windows environment and to my dismay very
> quickly realized that pexpect is not cross platform compatible.
>
> Am I stuck, or are there solutions out there?
>
It works pretty well under Cygwin (which also improves your Windows
scripting environment no end). Any chance you would be allowed to
install that?

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/

From: corey goldberg on
> > I was just tasked to get
> > these scripts running in a windows environment and to my dismay very
> > quickly realized that pexpect is not cross platform compatible.
> > Am I stuck, or are there solutions out there?


I haven't tried it, but here is another Python implementation of
Expect that claims to run on Windows also:

http://code.google.com/p/python-expect/

-Corey