[問題] 有關使用telnetlib

看板Python作者 (晨星)時間16年前 (2009/03/23 00:08), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
應該是在交換控制訊息中 發生中斷的現象 請問有人有解決的方法嗎 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)

03/23 23:30, , 1F
你是不是登入會顯示中文的站?
03/23 23:30, 1F

03/24 05:11, , 2F
是實驗室買的一套設備 想要使用批次檔 來管理
03/24 05:11, 2F
文章代碼(AID): #19nc9fGv (Python)
文章代碼(AID): #19nc9fGv (Python)