[Tutor] A Telnet problem
W X Liu
csmwxl at bath.ac.uk
Sun Sep 5 23:06:39 CEST 2004
Hi friends:
I am writing a program to connect a MUD(Telnet) server, here is the program:
import telnetlib
a=telnetlib.Telnet(host='mudlib.anarres.org',port='5000')
a.read_until('login:')
b=str('abb'+chr(10))
a.write(b+ "\n")
b=str('528950'+chr(10))
a.read_until('password:')
a.write(b+ "\n")
print a.read_until('abb at anarres')
But it doesn't work, who can help me to fix it? Thanks a lot.
Regards
Wenxin Liu
More information about the Tutor
mailing list