quest about telnetlib

GrayGeek jkrepsBEAR at FISHneb.rr.com
Thu Nov 13 18:28:54 EST 2003


??? wrote:

> 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?

Could it be throwing an error that you are not trapping, so you don't see
it?
-- 

-
GrayGeek




More information about the Python-list mailing list