标签: 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:
- remember to change the ip to yours
s.connect(('165.227.9.185', 9999))
- run it:
python client.py