ssh script

Hello, I am running dietpi on my rpi, one of the things i am running is motioneye, i want to be able to have a script / shortcut on my windows computer that ssh into my rpi, runs the script that contains:

dietpi-services start motioneye
sleep 2
exit 0

but all i get is “dietpi-services” command not found?

anyone have any experience and can point me in the right direction?


Many thanks for your message. Did you tried using full path to dietpi-services script?

Maybe the sudo is missing? dietpi user cannot run the dietpi-service without elevated privileges.

ânother possibility would be using systemctl start motioneye