By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,285 Members | 1,659 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,285 IT Pros & Developers. It's quick & easy.

alternative for pexpect for windows platform

P: 1
i have written a python code which telnets an ip address and reads and writes the read log into an output file
it is working perfectly using pexpect but it works only on unix.
is there any method so that the script can run on windows also.(other than cygwin)
i tried telnetlib which reads the log correctly but i cant find any method to write it into an output file

any help would be appreciated
Sep 6 '10 #1
Share this Question
Share on Google+
2 Replies


bvdet
Expert Mod 2.5K+
P: 2,851
I am unfamiliar with pexpect and telnetlib. My understanding is that pexpect is for Unix only, so telnetlib would be the way to go. Would redirecting sys.stdout to a file do what you want?
Sep 6 '10 #2

Expert 100+
P: 626
There is wexpect (you'll have to Google for it) but I don't personally know anyone who has tried it. It you try it, please let us know how it works.
Sep 6 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.