diff --git a/server/telnet_console.py b/server/telnet_console.py deleted file mode 100644 index b83447c995a3c9774ed3082d1d74756feffdb4f1..0000000000000000000000000000000000000000 --- a/server/telnet_console.py +++ /dev/null @@ -1,13 +0,0 @@ -import getpass -import sys -import telnetlib - -def telnet_console(PORT, cmd): - - HOST = "127.0.0.1" - tn = telnetlib.Telnet(HOST, 5000) - - tn.read_very_eager().decode('ascii') - tn.write(cmd.encode('ascii') + b"\r\n") - data = tn.read_until("R1#".encode()).decode('ascii') - return data