Matthew Frost
701c5d90cd
All checks were successful
Deploy powerbar.ti Frontend Portal / Deploy-Tinance2-Frontend-Portal-Production (push) Successful in 37s
14 lines
370 B
Python
14 lines
370 B
Python
import telnetlib
|
|
|
|
def check_input_error():
|
|
tn = telnetlib.Telnet("10.209.10.111", 2168)
|
|
tn.write("/\r\n".encode('ascii'))
|
|
for _ in range(3):
|
|
output = tn.read_until(b"Input error", timeout=3).decode('ascii')
|
|
print(output)
|
|
if "Input error" in output:
|
|
return True
|
|
return False
|
|
|
|
result = check_input_error()
|
|
print(result)
|