Hello,
Thx for your answer but it does not seems to work the way I expected.
By doing the json-rpc call without the grep, I have no result (or, to be precise, I've a result, but not the output from the command):
{ "jsonrpc": "2.0", "id": 1, "method": "call", "params": [ "32db4317b6559122de0a43bd9b082958", "file", "exec", { "command": "eventslog", "params": ["-p", "-t", "EVENTS"] } ] }
This gives me :
{
"jsonrpc": "2.0",
"id": 1,
"result": [
0,
{
"code": 0
}
]
}
And, even if this was working, I wonder how to pass the second command ("pipe" and grep)
{ "jsonrpc": "2.0", "id": 1, "method": "call", "params": [ "c3c0f060994fc8307897e154d81048c9", "file", "exec", { "command": "eventslog", "params": ["-p", "-t", "EVENTS", "|", "grep", "|SMS|"] } ] }
This gives me the same:
{
"jsonrpc": "2.0",
"id": 1,
"result": [
0,
{
"code": 0
}
]
}
Thx a lot