I’m trying to run a simple bash script using Scheduled Tasks on a Synology NAS. It fails interpreting an argument as a file.
OS: DSM 7.1.1-42962 Update 6
The ‘user-defined script’ in Scheduled Tasks:
/bin/bash /volume1/backup/fossil/start_fossil.sh
start_fossil.sh:
#!/bin/bash
cd /volume1/@appstore/fossil-scm/bin
fossil server --port 8080 /volume1/backup/fossil/fossil --https
Output:
no such file: server
I don’t understand why the argument server
is interpreted as a file. If I run the script with ./start_fossil.sh
or bash start_fossil.sh
it just works. It also works if I run the command directly in my shell. I tried several options with different quotes around the command or the arguments to no avail.
Any advice?
SoulEviscerator is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.