Author ckreddy
Recipients ckreddy, eric.smith
Date 2018-06-08.14:45:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528469135.61.0.592728768989.issue33806@psf.upfronthosting.co.za>
In-reply-to
Content
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 session to the same serve, my server will populate me with some options like below:

a. Connect to Port read/write
b. Connect to Port read only
c. Do not connect, drop this connection request
d. Look at port log file
>> 

So python telnetlib module doesn't handle these options even though i use below code. 
#establishing connectino to the remote host 
tn = telnetlib.Telnet(HOST,PORT)
# remote server will populate the above given options and stop at '>>', so i'm using the below line to read '>>' and write 'a'
print(tn.read_until(">> ".encode('ascii')))
tn.write(("a".encode('ascii')))

i have created this issue after trying all possible ways and searching the web for a whole day. 
Let me know if there is any way to handle this.
History
Date User Action Args
2018-06-08 14:45:35ckreddysetrecipients: + ckreddy, eric.smith
2018-06-08 14:45:35ckreddysetmessageid: <1528469135.61.0.592728768989.issue33806@psf.upfronthosting.co.za>
2018-06-08 14:45:35ckreddylinkissue33806 messages
2018-06-08 14:45:35ckreddycreate