Problem with rule using EXEC binding

Hi, I just created a rule using the EXEC binding…
Here is my Item :

Switch PCTV “Switch PCTV” {wol=“192.168.1.255#F0-92-1C-F4-XX-XX”, exec=">[OFF:net rpc shutdown -C ARRET_DEMANDE -I 192.168.1.16 -U username%password -f -t 0]" }

The WOL command runs well… But my PC won’t stop.
The shutdown command runs well when I launch it from SSH Shell.

Where is my mistake ?

Thanks

first idea: rights.
I think the exec is not running from the same user as you in ssh.

Hi Yves,
I thought about it but I didn’t create a specific user.
I’m using openhabian 2.0 and didn’t create another user than the default administrator one. (Openhabian) .

Do you think it could be a syntax problem ? I saw this syntax is used in “v1 binding” and I’m running “v2”.
I’ll try to understand the v2 syntax and work on it tomorrow.
Thanks for helping

I thought about it but I didn’t create a specific user.
I’m using openhabian 2.0 and didn’t create another user than the default administrator one. (Openhabian) .

That does not mean they both use the same user.
It could be a script error, yet rights is something to consider. You can try by launching a script that creates a log file or so…