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
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to