Advertisement
kubbur

Untitled

Nov 12th, 2014
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import telnetlib
  2. import time
  3.  
  4. HOST = "localhost 6571"
  5.  
  6.  
  7.  
  8. tn = telnetlib.Telnet(HOST)
  9.  
  10. tn.read_until("READY")
  11.  
  12. while True:
  13. tn.write(H)
  14. time.sleep(1)
  15. tn.write(L)
  16. time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement