View Single Post
Old 02-24-2014, 10:24 PM   #35
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,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Explanation of
Code:
0 6 * * 5 /usr/bin/calibre-upgrade.sh > /dev/null 2>&1
cron jobs (when viewed as a configuration file, not in the GUI) take the form of:

five numbers, separated by spaces, followed by the command to be carried out.

The numbers say when to do it:

Quote:
first number = minute, 0-59
second number = hour, 0-23
third number = day of month, 1-31
fourth number = month, 1-12
fifth number = day of the week, 1-7 is monday through sunday
asterisks are the wildcard, so they mean on all possible days/minutes/hours.

0 6 * * 5 is saying, at 0 minutes of the 6th hour, or 6:00, (army time) on any day of the month or any month of the year, but only if it is a friday, do this job.
eschwartz is offline