Message319070
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. |
|
Date |
User |
Action |
Args |
2018-06-08 14:45:35 | ckreddy | set | recipients:
+ ckreddy, eric.smith |
2018-06-08 14:45:35 | ckreddy | set | messageid: <1528469135.61.0.592728768989.issue33806@psf.upfronthosting.co.za> |
2018-06-08 14:45:35 | ckreddy | link | issue33806 messages |
2018-06-08 14:45:35 | ckreddy | create | |
|