hon
> Sent: Tuesday, 7 March 2006 12:52 PM
> To: Tutor Python
> Subject: Re: [Tutor] Print list vs telnetlib.telnet.write differences
>
> On Tue, 2006-03-07 at 11:31 +1000, STREET Gideon (SPARQ) wrote:
> > Enter configuration comman
On Tue, 2006-03-07 at 11:31 +1000, STREET Gideon (SPARQ) wrote:
> Enter configuration commands, one per line. End with CNTL/Z.
> switch01(config)#banner exec ^
>
> ##
>
> switch01
>
> Level XX, XX Some Street, Somewhe
he sent
commands? It looks like the script is looping on the print blob, but I
can't see why it should do that?
Thanks
Gideon
(I can send through the entire script but it's a 170+ lines and didn't
want to send an epic email to the list)
-Original Message-----
From: Pyth
On Fri, 2006-03-03 at 15:41 +1000, STREET Gideon (SPARQ) wrote:
> The problem I'm stumbling over is that when I print x, the output is
> what I want. If I delete the print x and #, leaving only tn.write(x)
> on
> the last line everything looks good except it writes the 1st item in
> "lines" (the b
ROTECTED] On
Behalf Of STREET Gideon (SPARQ)
Sent: Thursday, March 02, 2006 10:42 PM
To: tutor@python.org
Subject: [Tutor] Print list vs telnetlib.telnet.write differences
Hi all,
I've got the following snippet in a script I'm playing around with and
need some help.
Basically the scr
Hi all,
I've got the following snippet in a script I'm playing around with and
need some help.
Basically the script telnets to a cisco switch, "tn.read_until" a
subsection of the config, outputs to a file, then using readlines brings
it back into the script as a list where I'm changing some fiel