mirror of
https://github.com/keirf/greaseweazle-firmware.git
synced 2025-10-31 11:06:44 -07:00
10 lines
216 B
Python
10 lines
216 B
Python
|
|
# Send a command over telnet to remote host:
|
|
# telnet.py <host> <port> <string>
|
|
|
|
import sys
|
|
import telnetlib
|
|
|
|
with telnetlib.Telnet(sys.argv[1], sys.argv[2]) as t:
|
|
t.write((sys.argv[3] + '\n').encode('utf-8'))
|