I’m writing a simple script, that just connects to telnet port, listens everything on it, staying connected and when some string, for example ‘123’ appears, script do something.
I use tn.read_until(“123”, 2), but when ‘123’ appears, script just disconnects. How to make it stay online?
I’m writing a simple script, that just connects to telnet port, listens everything on
Share
Put tn.read_until(“123”, 2) in a loop.