ssh script

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
gandalf
Posts: 1
Joined: Sat Sep 12, 2020 3:45 pm

ssh script

Post by gandalf »

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 startcam.sh 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?
User avatar
Joulinar
Posts: 2277
Joined: Sat Nov 16, 2019 12:49 am

Re: ssh script

Post by Joulinar »

Hi,

Many thanks for your message. Did you tried using full path to dietpi-services script?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
trendy
Posts: 133
Joined: Tue Feb 25, 2020 2:54 pm

Re: ssh script

Post by trendy »

Maybe the sudo is missing? dietpi user cannot run the dietpi-service without elevated privileges.
User avatar
Joulinar
Posts: 2277
Joined: Sat Nov 16, 2019 12:49 am

Re: ssh script

Post by Joulinar »

ânother possibility would be using systemctl start motioneye
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply