It runs fine in my installation of ActivePython-2.3.2-230-win32-ix86.msi which 
includes
 PythonWin 2.3.2 (#49, Oct 24 2003, 13:37:57) [MSC v.1200 32 bit (Intel)] on win32.

----- Original Message ----- 
From: "Roman Zilber" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 9:09 PM
Subject: telnetlib problem on win32


> Hi!
> 
> I am trying to use python's Telnet client on windows and UNIX, I didn't
> succeed to use it windows platform. 
> Does somebody have idea what is my problem?
> 
> PythonWin 2.3b1 (#40, Apr 25 2003, 19:06:24) [MSC v.1200 32 bit (Intel)]
> on win32.
> Portions Copyright 1994-2001 Mark Hammond ([EMAIL PROTECTED]) -
> see 'Help/About PythonWin' for further copyright information.
> >>> import telnetlib
> >>> tn = telnetlib.Telnet()
> >>> tn.open("romanz")                                 #windows 2000
> >>> tn.read_until(">")
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in ?
>   File "C:\Python23\lib\telnetlib.py", line 316, in read_until
>     self.fill_rawq()
>   File "C:\Python23\lib\telnetlib.py", line 521, in fill_rawq
>     buf = self.sock.recv(50)
>   File "<string>", line 1, in recv
> error: (10054, 'Connection reset by peer')
> ########################################################################
> #########
> >>> tn.open("baka-02")                                  # UNIX
> >>> tn.read_until("login:")
> '\r\nServer allows NTLM authentication only \r\nServer has closed
> connection\n\r\n\r\ntelnet
> (baka-02)\r\n\r\r\n\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\
> n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\rAIX Version
> 4\r\n\r(C) Copyrights by IBM and by others 1982, 1996.\r\n\rlogin:'
> >>> 
> 
> Thanks for your help...
> Roman
> 
> _______________________________________________
> ActivePython mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
> 
> 

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to