Re: [Tutor] Print list vs telnetlib.telnet.write differences

2006-03-06 Thread STREET Gideon (SPARQ)
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: Python [mailto:[EMAIL PROTECTED] Sent: Saturday, 4 March 2006 3:42 AM To: STREET Gideon (SPARQ) Cc: Tutor Python Subject: Re: [Tutor] Print list vs

Re: [Tutor] Print list vs telnetlib.telnet.write differences

2006-03-06 Thread Python
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, Somewhere

Re: [Tutor] Print list vs telnetlib.telnet.write differences

2006-03-06 Thread 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 commands, one per line. End with CNTL/Z. switch01(config)#banner exec

[Tutor] Print list vs telnetlib.telnet.write differences

2006-03-02 Thread STREET Gideon (SPARQ)
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

Re: [Tutor] Print list vs telnetlib.telnet.write differences

2006-03-02 Thread David Heiser
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 script telnets to a cisco switch, tn.read_until a subsection of the config, outputs to a file