View Single Post
Old 05-11-2014, 11:00 AM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by R71986 View Post
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.

Last edited by eschwartz; 05-11-2014 at 11:02 AM.
eschwartz is offline   Reply With Quote