[GH-ISSUE #32] The script doesnt run #20

Closed
opened 2026-03-07 19:14:06 +03:00 by kerem · 1 comment
Owner

Originally created by @SayonaRRRa on GitHub (Mar 23, 2023).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/32

Runing this on Xpenology redpill loader
920+ DSM 7.1.1-42962 Update 4
I am new to this and would like to run this script. I know nothing about how to run the script.
I putty into the machine like you would.
I did run however a python one and it worked but this shows up as:


root@NAS-SLIM:~# cd /tmp
root@NAS-SLIM:/tmp# sudo script.sh
sudo: script.sh: command not found

Originally created by @SayonaRRRa on GitHub (Mar 23, 2023). Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/32 Runing this on Xpenology redpill loader 920+ DSM 7.1.1-42962 Update 4 I am new to this and would like to run this script. I know nothing about how to run the script. I putty into the machine like you would. I did run however a python one and it worked but this shows up as: ``` root@NAS-SLIM:~# cd /tmp root@NAS-SLIM:/tmp# sudo script.sh sudo: script.sh: command not found ```
kerem closed this issue 2026-03-07 19:14:06 +03:00
Author
Owner

@007revad commented on GitHub (Mar 23, 2023):

Because the script is not in a location that is in DSM's path variable /sbin, /bin, /usr/sbin, /usr/bin, /usr/syno/sbin, /usr/syno/bin, /usr/local/sbin, /usr/local/bin you need to type the path to where the script is located.

For example, if you saved the script to your home folder on volume 1 and your username was bob you'd type:

sudo -i /volume1/homes/bob/script.sh

<!-- gh-comment-id:1481025227 --> @007revad commented on GitHub (Mar 23, 2023): Because the script is not in a location that is in DSM's path variable `/sbin, /bin, /usr/sbin, /usr/bin, /usr/syno/sbin, /usr/syno/bin, /usr/local/sbin, /usr/local/bin` you need to type the path to where the script is located. For example, if you saved the script to your home folder on volume 1 and your username was bob you'd type: `sudo -i /volume1/homes/bob/script.sh`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_HDD_db#20
No description provided.