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

i can't run cd commands #18

Closed The-Math-God closed 4 years ago

The-Math-God commented 5 years ago

hi i have an issue everytime i run this command "cd uhubctl" i get this error

Command for custom:p3 off failed with return code 2: STDOUT: STDERR: /bin/sh: 1: cd: can't cd to uhubctl

but when i run the exact same command through putty it works fine what am i doing wrong

Salandora commented 5 years ago

Uhm can you show the full script / command also, maybe try the absolute path instead of relative.

The-Math-God commented 5 years ago

cd uhubctl ; ./uhubctl -l 1-1.1 -a 0 -p 3 and cd uhubctl ; ./uhubctl -l 1-1.1 -a 1 -p 3

Salandora commented 5 years ago

have you tried to use the absolute path? Additionally you maybe want to put that into a .sh file if not already done.

The-Math-God commented 5 years ago

i got it working i just had to type it like this cd /home/pi/uhubctl ; ./uhubctl -l 1-1.1 -a 0 -p 3 and it worked thanks for the help :)

Salandora commented 4 years ago

Closing because it's workin.