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
@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
: 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
: 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
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
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
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
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
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
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
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
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
-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
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.
] 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
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
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
17 matches
Mail list logo