I want two jobs to run sometime every day, serially, in exactly the order I specify. Will this crontab reliably do what I want?
@daily job1
@daily job2
I'm assuming they run one after the other, but I was unable to find the answer by searching the Web or from any of these manpages: cron(1)
, crontab(1)
, crontab(5)
.
The crontab above obviously won't do what I want if cron runs things scheduled with @daily
in parallel or in an unpredictable order.
I know I can simply make one shell script to fire them off in order, I'm just curious how cron is supposed to work (and I'm too lazy to gather test data or read the source code).
Cron is provided by the cron
package. OS is Ubuntu 10.04 LTS (server).
cron
package? Almost all cron daemons I know will handle this in order, and synchronously, usually first parsing each file in alphabetical order (although some do it by amount of time between runs in ascending order), and then the jobs inside in line order.