作者glenman (晨星)
看板Python
标题[问题] 有关使用telnetlib
时间Mon Mar 23 00:08:08 2009
应该是在交换控制讯息中 发生中断的现象
请问有人有解决的方法吗
tn.set_debuglevel(2)
tn.read_until("Login:")
tn.write(user + "\n")
tn.read_until("Password:")
tn.write(pswd + "\n")
以下是错误讯息
Telnet(192.168.10.1,23): recv '\xff\xfc\x01'
Telnet(192.168.10.1,23): IAC WONT 1
Telnet(192.168.10.1,23): recv
'\xff\xfb\x01\xff\xfb\x03\xff\xfd\x18\xff\xfb\x18\
xff\xfd\x1f\xff\xfb\x1f\xff\xfb"\xff\xfb\x05Login:'
Telnet(192.168.10.1,23): IAC WILL 1
Telnet(192.168.10.1,23): IAC WILL 3
Telnet(192.168.10.1,23): IAC DO 24
Telnet(192.168.10.1,23): IAC WILL 24
Telnet(192.168.10.1,23): IAC DO 31
Telnet(192.168.10.1,23): IAC WILL 31
Telnet(192.168.10.1,23): IAC WILL 34
Telnet(192.168.10.1,23): IAC WILL 5
Telnet(192.168.10.1,23): send 'admin\n'
Telnet(192.168.10.1,23): recv 'a'
Telnet(192.168.10.1,23): recv 'dmin'
--
※ 发信站: 批踢踢实业坊(ptt.cc)
※ 编辑: glenman 来自: 140.115.152.232 (03/23 03:28)
1F:推 cobrasgo:你是不是登入会显示中文的站? 03/23 23:30
2F:→ glenman:是实验室买的一套设备 想要使用批次档 来管理 03/24 05:11