Re: [Tutor] python telnet

2011-11-19 Thread Steven D'Aprano
Rayon wrote: I installed the telnet client but still the same error. How did you install it? Windows includes a telnet application, but it has to be enabled first: http://windows.microsoft.com/en-AU/windows-vista/Telnet-frequently-asked-questions If you run telnet from the Windows shell

Re: [Tutor] python telnet

2011-11-19 Thread Rayon
@python.org Subject: Re: [Tutor] python telnet Rayon wrote: I installed the telnet client but still the same error. How did you install it? Windows includes a telnet application, but it has to be enabled first: http://windows.microsoft.com/en-AU/windows-vista/Telnet-frequently-asked-que stions

Re: [Tutor] python telnet

2011-11-19 Thread James Chapman
: 19 November 2011 07:04 To: tutor@python.org Subject: Re: [Tutor] python telnet Rayon wrote: I installed the telnet client but still the same error. How did you install it? Windows includes a telnet application, but it has to be enabled first: http://windows.microsoft.com/en-AU

Re: [Tutor] python telnet

2011-11-19 Thread Rayon
: 19 November 2011 08:23 To: tutor@python.org Subject: Re: [Tutor] python telnet traceback has: child = winspawn('telnet 192.168.0.55:210') When using telnet from CLI (on windows), you would type: telnet 192.168.0.55 210 Note the space between the IP and port number and not a :colon. Not sure

Re: [Tutor] python telnet

2011-11-19 Thread Rayon
Chapman Sent: 19 November 2011 08:23 To: tutor@python.org Subject: Re: [Tutor] python telnet traceback has: child = winspawn('telnet 192.168.0.55:210') When using telnet from CLI (on windows), you would type: telnet 192.168.0.55 210 Note the space between the IP and port number and not a :colon

Re: [Tutor] python telnet

2011-11-18 Thread Rayon
To: tutor@python.org Subject: Re: [Tutor] python telnet Rayon wrote: I am trying to use winpexpect to connect a telnet session. I keep getting this error. raise ExceptionPexpect, 'Command not found: %s' % self.command ExceptionPexpect: Command not found: telnet Please copy and paste

Re: [Tutor] python telnet

2011-11-18 Thread Rayon
Thank you I think I understand now, thank you very much. -Original Message- From: tutor-bounces+evosweet=hotmail@python.org [mailto:tutor-bounces+evosweet=hotmail@python.org] On Behalf Of Steven D'Aprano Sent: 17 November 2011 19:52 To: tutor@python.org Subject: Re: [Tutor] python

[Tutor] python telnet

2011-11-17 Thread Rayon
From: Rayon [mailto:ra...@gtt.co.gy] Sent: 17 November 2011 14:04 To: 'tutor@python.org' Subject: python telnet I am trying to use winpexpect to connect a telnet session. I keep getting this error. raise ExceptionPexpect, 'Command not found: %s' % self.command

Re: [Tutor] python telnet

2011-11-17 Thread Steven D'Aprano
Rayon wrote: I am trying to use winpexpect to connect a telnet session. I keep getting this error. raise ExceptionPexpect, 'Command not found: %s' % self.command ExceptionPexpect: Command not found: telnet Please copy and paste the entire traceback, not just the last couple of

[Tutor] python telnet

2011-10-22 Thread Rayon
From: Rayon [mailto:ra...@gtt.co.gy] Sent: 21 October 2011 18:53 To: 'tutor@python.org' Subject: python telnet Can I connect to a telnet session and return data without disconnecting the data session. Regards Rayon ___ Tutor

Re: [Tutor] python telnet

2011-10-22 Thread Tom Tucker
Take a look at pyexpect. I have used this mod to ssh into juniper firewalls, excute a command, save results and exit. Instead of exiting you can drop down to interactive mode. On Oct 22, 2011 3:40 PM, Rayon evosw...@hotmail.com wrote: ** ** ** ** ** ** *From:* Rayon

Re: [Tutor] python telnet

2011-10-22 Thread Steven D'Aprano
Rayon wrote: Can I connect to a telnet session and return data without disconnecting the data session. Isn't this the same question you asked back in June? We tried to answer your question then, did you see our responses, and were they useful? At the time, you were complaining that the

Re: [Tutor] python telnet

2011-10-22 Thread Rayon
-Original Message- From: tutor-bounces+evosweet=hotmail@python.org [mailto:tutor-bounces+evosweet=hotmail@python.org] On Behalf Of Steven D'Aprano Sent: 22 October 2011 15:55 To: tutor@python.org Subject: Re: [Tutor] python telnet Rayon wrote: Can I connect to a telnet session

Re: [Tutor] python telnet

2011-10-22 Thread Steven D'Aprano
Rayon wrote: Well what I am doing is connecting to a telnet session sending some commands, exiting and returning some data. What I would to do is send the commands and return the data without exiting the session. I would like to keep the same session and just send commands and return data.

Re: [Tutor] python telnet

2011-10-22 Thread Rayon
] python telnet Rayon wrote: Well what I am doing is connecting to a telnet session sending some commands, exiting and returning some data. What I would to do is send the commands and return the data without exiting the session. I would like to keep the same session and just send commands

[Tutor] python telnet

2009-08-19 Thread Rayon
using python telnet lib to connect to a Nortel switch, and dump some tables. My problem is that every now and then the connection is reset by peer . Telnet Error : (10054, Connection reset by peer) I need to know why, I have it in a loop so it will download after a few tries but I need to know

Re: [Tutor] python telnet

2009-08-19 Thread Luke Paireepinart
How are you running it?This usually happens when you have an error in your connection, and then you try to re-run it, and the previous connection attempt has not released the port yet. Are you having an error between subsequent runs, or do you have an error the first time you run it after a fresh