-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.sh
executable file
·33 lines (31 loc) · 956 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#nc 10.0.0.5 1234 << EOF
#{"RequestType": "rtResignSave", "resign": {"saveName": "data0001", "accountId": 4451199660695826245}}
#EOF
#
#nc 10.0.0.5 1234 << EOF
#{"RequestType": "rtDumpSave", "dump": {"saveName": "data0001", "targetFolder": "/data/dump", "selectOnly": []}}
#EOF
#
#nc 10.0.0.5 1234 << EOF
#{"RequestType": "rtUpdateSave", "update": {"saveName": "data0001", "sourceFolder": "/data/dump", "selectOnly": []}}
#EOF
#
#nc 10.0.0.5 1234 << EOF
#{"RequestType": "rtListSaveFiles", "list": {"saveName": "data0001"}}
#EOF
#
#nc 10.0.0.5 1234 << EOF
#{"RequestType": "rtKeySet"}
#EOF
#
#nc 10.0.0.5 1234 << EOF
#{"RequestType": "rtClean", "clean": {"saveName": "data0001", "folder": "/data/dump"}}
#EOF
#
#nc 10.0.0.5 1234 << EOF
#{"RequestType": "rtUploadFile", "upload": {"target": "/data/dump2/abc.txt", "size": 1}}
#a
#EOF
nc 10.0.0.5 1234 > /dev/null << EOF
{"RequestType": "rtDownloadFile", "download": {"source": "/data/dump2/abc.txt"}}
EOF