@gzm1997
2017-09-10T13:49:07.000000Z
字数 590
阅读 1072
tcp
This is a small tool of tcp, which can tranform terminal command you wana run from your server running server.py to a computer that is running the client.py in this project. And then the client will run commonds in that machine as well as return the result.
To run server:
python server.py
cmd | useage | example |
---|---|---|
dld filename | show the detail of the file | dld test.txt |
exit1997 | disconnect and end operation | exit1997 |
others | the same commands in the operation system runing client.py | cd folder |
To run client:
s.connect(('165.227.9.185', 9999))
python client.py