Salandora / OctoPrint-SystemCommandEditor

This plugin makes System Commands editable through the OctoPrint WebUI
GNU Affero General Public License v3.0
9 stars 10 forks source link

URL Not Found error #19

Open The-Math-God opened 5 years ago

The-Math-God commented 5 years ago

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 snapshot-1557169064939

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

Salandora commented 5 years ago

try not to use ~ use the absolute path instead

cyandura commented 2 years ago

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