[Tutor] Basic telnet question solved

David Rock david at graniteweb.com
Sun Sep 25 15:01:47 EDT 2016


> On Sep 24, 2016, at 18:59, Phil <phil_lor at bigpond.com> wrote:
> 
> 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.

Glad it worked for you :-)


— 
David Rock
david at graniteweb.com






More information about the Tutor mailing list