> On Sep 24, 2016, at 18:59, Phil <phil_...@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
da...@graniteweb.com




_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to