[Tutor] Basic telnet question solved
Phil
phil_lor at bigpond.com
Sat Sep 24 19:59:07 EDT 2016
On 25/09/16 07:17, David Rock wrote:
> header = tn.read_until("character is '^]’.”, timeout=5)
> print(header)
Thank you David, read_until() led me to a result. It seems that the
telnetlib doesn't emulate the console telnet command exactly, so I
didn't get the connection response that I had expected. However, if I
send a command to the client and use read_until() then I do get the
result from the command that I expected.
Thanks again, I was on the verge of giving this idea away.
--
Regards,
Phil
More information about the Tutor
mailing list