Quote:
Originally Posted by R71986
In order to automate it have I understood the cron setup correctly?
sudo ln -s /usr/bin/calibre-upgrade.sh /etc/cron.weekly/calibre-upgrade
(note i have removed the sh from the object link)
I am not clear when cron.weekly will run. Is that a system operation not controlled by a cron script?
|
That uses anacron instead of cron, and should do basically the same thing. But you will have to edit "/etc/anacrontab" or "/etc/cron.d/anacron" (not sure which, since I just stuck with crontab and have no idea how anacron works) I think, to change anacron's schedule to run weekly jobs on Friday, or the job won't run until anacron's default time. I think it defaults to running weekly jobs on Sunday, so you'd be two days behind.
The purpose of anacron is for running jobs on startup if the jobs were missed because the computer was off. You may not need that.
I'd just put the command to run calibre-upgrade as a crontab job, like in the instructions. It's simpler/easier to control.