Prev: MODULE FOR I, P FRAME
Next: come and join www.pakdub.com a social network with full features like games, classifieds, forums, blogs and a lot more
From: Steve Holden on 11 Feb 2010 14:57 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 12 Feb 2010 13:18
> > 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 |