Anyone has an idea or hint on this #python problem?
I want to read a log from a device using telnetlib. I send "show log" and then get a reply, but if it's longer than 22 lines, the device waits for the user to press return before displaying the rest. I don't know an "expected" string to use with read_until, nor do I know how long the reply will be.
Any help would be appreciated :)
@rascalking Thanks for taking the time to respond :)
Basically, that works. But it seems the device isn't so happy with someone asking so fast and some output is missing. To avoid more workarounds, I think I'll try to get my log via http. :(
@dennix if it's not a huge pain on the device, that'll probably turn out to be much easier on the python side. requests is your friend here.
http://docs.python-requests.org/en/master/user/quickstart/