Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #96511
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: How to use the returned telnet object after creating the telnet session. |
| Date | 2015-09-13 12:40 -0400 |
| Organization | IISS Elusive Unicorn |
| References | <e578698e-7721-4c01-a270-61fa211c3f79@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.483.1442162427.8327.python-list@python.org> (permalink) |
On Sun, 13 Sep 2015 00:38:03 -0700 (PDT), manjunatha.mahalingappa@gmail.com
declaimed the following:
> connection.write(cmd + "\n")
>
Here you added a termination newline.
>
>#Function to read device IP and port . and this info for opening the telnet session.
>def IP_port(file):
>T = []
>F = open(file,'r')
>F.seek(0)
>
Indentation wrong?
> T1.write("show config") <<<<<<<<<ERROR PART
No new line here...
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
How to use the returned telnet object after creating the telnet session. manjunatha.mahalingappa@gmail.com - 2015-09-13 00:38 -0700 Re: How to use the returned telnet object after creating the telnet session. Denis McMahon <denismfmcmahon@gmail.com> - 2015-09-13 10:34 +0000 Re: How to use the returned telnet object after creating the telnet session. Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-09-13 12:40 -0400
csiph-web