[Tutor] Need help with telnet
Alan Gauld
alan.gauld at blueyonder.co.uk
Thu Aug 12 00:11:05 CEST 2004
> Friends I want to write a programme which connects to the chess
> server that I play chess using telnet...
> Can someone write me a simple script so that I can understand
> how to write telnet scripts with python?
If you want to script a telnet session you might find pyexpect
a more useful tool.
You specify patterns to look for in the telnet output and the
functions to call when they are found. Its based on the well
known Tcl tool expect. I can't remember if its in the standard
library but if not I'm sure its on sourceforge...
Alan G.
More information about the Tutor
mailing list