[issue33806] Cannot re-open an existing telnet session

2018-06-08 Thread R. David Murray
R. David Murray added the comment: To clarify: don't call open again *on that telnetlib.Telnet object*. You can certainly have more than one open connection using different telnetlib.Telnet instances, though it might be a bit challenging to manage them :) --

[issue33806] Cannot re-open an existing telnet session

2018-06-08 Thread R. David Murray
Change by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33806] Cannot re-open an existing telnet session

2018-06-08 Thread R. David Murray
R. David Murray added the comment: telnetlib provides a low level interface to the telnet protocol. The dialog you mention appears to be transmitted on the telnet connection, so it is unlikely there is any bug or missing feature in telnetlib that would affect your problem. The sentence in

[issue33806] Cannot re-open an existing telnet session

2018-06-08 Thread Eric V. Smith
Eric V. Smith added the comment: This sounds like an application-level issue, not a telnetlib problem. As far as I can tell, you're opening a new connection, not reusing an existing connection. -- ___ Python tracker

[issue33806] Cannot re-open an existing telnet session

2018-06-08 Thread Chandrakanth Reddy
Chandrakanth Reddy added the comment: Hi Eric, Apologize for not providing the link. Below is the link which i was referring to: https://docs.python.org/3.1/library/telnetlib.html I have an already opened telnet session(established by some other user). Now if I again try to open a telnet

[issue33806] Cannot re-open an existing telnet session

2018-06-08 Thread Eric V. Smith
Eric V. Smith added the comment: Which link are you referring to? I don't see any code you've provided where you're reopening a connection. It looks like you're opening a new connection, reading, writing, and nothing else. It also looks like the output you show is coming from the remote

[issue33806] Cannot re-open an existing telnet session

2018-06-08 Thread Chandrakanth Reddy
gt;> ' -- messages: 319056 nosy: ckreddy priority: normal severity: normal status: open title: Cannot re-open an existing telnet session type: enhancement versions: Python 3.7 ___

Re: How to use the returned telnet object after creating the telnet session.

2015-09-13 Thread Denis McMahon
On Sun, 13 Sep 2015 00:38:03 -0700, manjunatha.mahalingappa wrote: > Assume that I will pass IP and port information from a function to open > the telnet session. have opened the telnet session and after opening the > telnet session I returned telnet object to calling function.

How to use the returned telnet object after creating the telnet session.

2015-09-13 Thread manjunatha . mahalingappa
Hello all, First I would like thank you for creating such good platform for discussing python..!!! Assume that I will pass IP and port information from a function to open the telnet session. have opened the telnet session and after opening the telnet session I returned telnet object

[issue1730959] telnetlib: A callback for monitoring the telnet session

2009-03-31 Thread Jack Diederich
Jack Diederich jackd...@gmail.com added the comment: class MyTelnet(Telnet): def read_until(self, *args) txt = Telnet.read_until(self, *args) sys.stdout.write(txt) return txt Hope that helps, closing the bug. -- nosy: +jackdied resolution: - wont fix status: open -

[issue1730959] telnetlib: A callback for monitoring the telnet session

2009-03-30 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed type: - feature request versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1730959 ___

Re: Automating a telnet session with an echo to stdout

2007-06-04 Thread Samuel
On Sat, 02 Jun 2007 17:41:01 +, Samuel wrote: I am trying to automate a telnet session (currently using Python's telnetlib) and would like to echo any response of the remote host to stdout, as soon as it arrives on telnetlib's open TCP socket. For the records: Because I did not find any

Automating a telnet session with an echo to stdout

2007-06-02 Thread Samuel
Hi, I am trying to automate a telnet session (currently using Python's telnetlib) and would like to echo any response of the remote host to stdout, as soon as it arrives on telnetlib's open TCP socket. Currently I print the return value of the read_some() method (or other read* methods

telnet session

2006-03-29 Thread eight02645999
hi i am using a telnet session to simulate an authentication mechanism USER = user PASSWORD = password try: telnet = telnetlib.Telnet(HOST) telnet.set_debuglevel(5) telnet.read_until(login: ) telnet.write(USER + \n) telnet.read_until(Password

telnet session

2006-03-29 Thread eight02645999
hi i am using a telnet session to simulate an authentication mechanism USER = user PASSWORD = password try: telnet = telnetlib.Telnet(HOST) telnet.set_debuglevel(5) telnet.read_until(login: ) telnet.write(USER + \n) telnet.read_until(Password

Re: telnet session

2006-03-29 Thread Paul Rubin
[EMAIL PROTECTED] writes: When i purposely input a wrong password, it hangs at the login prompt waiting for login and Password. The host i am telnetting to is a unix server. How can i exit this login prompt if the user keys in wrong password in my script? It looks to me like after you send

Re: telnet session

2006-03-29 Thread Eddie Corns
[EMAIL PROTECTED] writes: hi i am using a telnet session to simulate an authentication mechanism USER = user PASSWORD = password try: telnet = telnetlib.Telnet(HOST) telnet.set_debuglevel(5) telnet.read_until(login: ) telnet.write(USER + \n