Open The-Math-God opened 5 years ago
try not to use ~ use the absolute path instead
I hate to necro this from 3 years ago, but i had the same problem and i wasnt using any sort of path in the command. The real issue is when you have a / in the command name or the action name. It must mess up the command when it gets sent to the system. i removed the / from the name and action name and problem solved
hi i need some help after i rebooted octoprint when i run a script through putty it works fine but every time i try to run it through system command editor i get this message
heres the script run command sudo ~/scripts/toggle-webcam and heres the code in that script
!/bin/bash
if systemctl is-active webcamd.service; then sudo service webcamd stop else sudo service webcamd start fi