So, I have a command:
Can anyone see anything wrong with that?
The script itself only has:
Could someone help me understand why it is not executing the script?
Is the script executable? If you use ls -al you should see the x in the attributes. For example:
-rwxrwxr-x 1 markrad markrad 1545 Oct 11 13:08 blob.sh*
The xs in my example show it is executable by the owner, members of the group and everybody else. Use
sudo chmod +x /etc/openhab2/scripts/rungnuplot.sh
to fix it if it’s not.
yup, already had given it executable rights.
-rwxrwxr-x 1 openhabian openhabian 56 Dec 29 20:49 rungnuplot.sh
What’s strange is…
Changing from the sh to a direct execution seemed to achieve my final goal so… not sure why I couldn’t run the script, so I guess I delayed that issue for another day.