reactos/modules/rostests/tests/oskittcp/cmd_oskit.py

10 lines
No EOL
182 B
Python

from socket import *
import sys
s = socket(AF_INET,SOCK_DGRAM,0)
s.connect(('localhost',5001))
while 1:
sys.stdout.write('>> ')
line = sys.stdin.readline()
s.send('CMD ' + line)