Changes

Line 245: Line 245:  
[[Image:Configuration examples json-rpc terminal gsmctl.png]]
 
[[Image:Configuration examples json-rpc terminal gsmctl.png]]
    +
You can issue almost any Linux command in a similar manner. For example, if you wish to get a list of file names contained in the config folder, the Linux command to do so would be '''ls /etc/config''', which, translated to JSON-RPC, would be:
 +
 +
  curld -d "{\"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [\"a74c8e07646f0da2bfddce35bf3de1f3\", \"file\", \"exec\", {\"command\":\"ls\", \"params\": [\"/etc/config\"] } ] }" http://192.168.1.1/ubus
    
</font>
 
</font>