I have this item:
Switch Twonky_DLNA “Twonky DLNA”
Both scripts are the same, except start and stop command.
START:
#!/bin/bash
sshpass -p MYPASS ssh -o StrictHostKeyChecking=no USER@IP “cd /mnt/pools/A/A0/Arquivos/twonky8.1; ./twonkyinicia.sh start” &
STOP:
#!/bin/bash
sshpass -p MYPASS ssh -o StrictHostKeyChecking=no USER@IP “cd /mnt/pools/A/A0/Arquivos/twonky8.1; ./twonkyinicia.sh stop” &
This way I can start and stop another service from Openhab using EXEC and ssh.