l Message-
From: tutor-bounces+evosweet=hotmail@python.org
[mailto:tutor-bounces+evosweet=hotmail@python.org] On Behalf Of Rayon
Sent: 19 November 2011 08:41
To: 'James Chapman'; tutor@python.org
Subject: Re: [Tutor] python telnet
Thanks but still not working, I am wonderin
: 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.
Behalf Of Steven
> D'Aprano
> Sent: 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
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/windows-vista/Telnet-frequently-asked-qu
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 (
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] p
On Behalf Of Steven
D'Aprano
Sent: 17 November 2011 19:52
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
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
lines.
Thanks I will try it and post the code, looks like what I need.
-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 21:13
To: tutor@python.org
Subject: Re: [
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.
e_date,log_type,log_data,ip_address)values(%s,%s,%s,%s)",
(create_date,log_type,log_data,ip_address))
conn.commit()
cur.close()
conn.close()
finally:
try:
log_file = open(r"text_log.txt","a")
log_file.writ
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 t
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" wrote:
> ** **
>
> ** **
>
> ** **
>
> *From:* Rayon [mailto:ra...@gtt.co.gy]
> *Sent:*
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 r
14 matches
Mail list logo