Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import telnetlib
- import time
- import sys
- HOST = "localhost"
- PORT = "6571"
- tn = telnetlib.Telnet(HOST, PORT)
- tn.read_until("READY")
- #while True:
- tn.write("H\n\r")
- time.sleep(1)
- tn.write("L\n\r")
- time.sleep(1)
- tn.close
- exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement