I have a script called refresh.sh which work just fine when i run it manually via the terminal. Code is one line -->
watch -n 5 xdotool search --onlyvisible --class chromium windowactivate key "ctrl+F5"
This then performs a keyboard action CTRL+F5 every 5 seconds. (This will be changed once i have things working)
I want to run this after chromium has started and loaded the page i want in kiosk mode. This works fine too by the way.
I have tried a systemd service but get an error message when i try to start it manually. I have tried using my .py in the service and running the .sh file directly but with no luck. Error message is the same
Any help would be appreciated.
Loaded: loaded (/lib/systemd/system/refresh.service; enabled)
Active: failed (Result: exit-code) since Thu 2017-04-27 09:31:04 GMT; 3s ago
Process: 2468 ExecStart=/home/pi/refresh.sh (code=exited, status=203/EXEC)
Main PID: 2468 (code=exited, status=203/EXEC)