Hi,
I apologize if this has been answered, I searched the forums and Google but didn't seem to find the solution I need:
I have a couple of scripts I would like to run every hour on my ASUS RT-AC66R. As you probably know whenever the router reboots the crontab is removed. So I went to /jffs/scripts and created a file called "services-start" with the following content:
I then made it executable with:
But whenever I try to execute the script I get the following message:
I've tried several different incantations, all the same result:
I can run the command via the commandline but it hangs. Ctrl+C breaks out of the hang and the crontab is in place and functioning. The script always returns the error.
I've formatted the JFFS partition via "Administration" and recreated the file, but I've had no luck.
I'm running ASUSWRT-Merlin: 3.0.0.4.374.39_0
For now I don't expect to reboot very frequently but I would prefer to not have to login and replace the crontab any time I do.
Thanks in advance for any help, I greatly appreciate it!
I apologize if this has been answered, I searched the forums and Google but didn't seem to find the solution I need:
I have a couple of scripts I would like to run every hour on my ASUS RT-AC66R. As you probably know whenever the router reboots the crontab is removed. So I went to /jffs/scripts and created a file called "services-start" with the following content:
Code:
#!/bin/sh
crontab /tmp/mnt/sda1/scripts/admin
I then made it executable with:
Code:
chmod a+rx /jffs/scripts/services-start
But whenever I try to execute the script I get the following message:
Code:
/jffs/scripts/services-start: line 3: crontab: Permission denied
I've tried several different incantations, all the same result:
Code:
/jffs/scripts/services-start
sh /jffs/scripts/services-start
sh services-start
sh ./services-start
I can run the command via the commandline but it hangs. Ctrl+C breaks out of the hang and the crontab is in place and functioning. The script always returns the error.
I've formatted the JFFS partition via "Administration" and recreated the file, but I've had no luck.
I'm running ASUSWRT-Merlin: 3.0.0.4.374.39_0
For now I don't expect to reboot very frequently but I would prefer to not have to login and replace the crontab any time I do.
Thanks in advance for any help, I greatly appreciate it!
Last edited: