quest about telnetlib

张志明 goodtaste at 126.com
Thu Nov 13 06:48:03 EST 2003


code below cannt work

import getpass
import sys
import telnetlib
import select

tn = telnetlib.Telnet()

print tn.open("162.105.31.222",23)
print tn.read_eager() 

print "ok"

output is:
------------
None

ok
------------

the host is avaiable,but my python program cannt connect to it ,why?





More information about the Python-list mailing list