linuxep / lepd

server daemon of LEP
45 stars 40 forks source link

Example in README.md not work on bash #22

Open docsis opened 7 years ago

docsis commented 7 years ago

echo "{"method":"GetProcMeminfo"}" | nc 10.10.10.145 12307 { "error": { "code": -32700, "message": "Parse error. Invalid JSON was received by the server." } }

echo -n '{"method":"GetProcMeminfo"}' | nc 10.10.10.145 12307 { "result": "MemTotal: 6103108 kB\nMemFree: 5172292 kB\nMemAvailable: 5195256 kB\nBuffers: 2080 kB\nCached: 78108 kB\nSwapCached:

ZevveZ commented 6 years ago

You should write like echo '{"method":"ListAllMethod"}' | nc <lepd IP地址> 12307.