I'm trying to send a command ^B09 to a device with python's telnetlib.
Logging directly into the device with putty and issuing the commands work fine.
However, would like to automate some of these commands with python.
B.
Logging directly into the device with putty and issuing the commands work fine.
However, would like to automate some of these commands with python.
self.telnet = telnetlib.Telnet() self.telnet.open(ip, self.port) t = self.telnet t.write(b'\x05') # -----> ^E (Control Character) *** Works great *** t.read_until('READY', 5) t.write(b'\x02\x30\x39') # -----> ^B09 *** DOES NOT WORK *** t.read_until('DISCONNECT', 5)Very confused on how to concatenate the '09' onto the ^B.
B.