mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
10 lines
182 B
Python
10 lines
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)
|