LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cron jobs execution order (https://www.linuxquestions.org/questions/linux-newbie-8/cron-jobs-execution-order-4175458875/)

chicken76 04-20-2013 05:32 AM

Cron jobs execution order
 
Bit of a noob question here:
The scripts I put in /etc/cron.daily (or any other cron.* directory for that matter) are executed all in parallel or in sequence?

Edit: My distribution is Slackware, but I believe this question applies to many others.

goumba 04-20-2013 05:49 AM

From the cron manpage under Debian Wheezy:

Code:

cron also reads /etc/crontab, which is in a slightly  different  format
(see crontab(5)).  In Debian, the content of /etc/crontab is predefined
to    run    programs    under    /etc/cron.hourly,    /etc/cron.daily,
/etc/cron.weekly  and /etc/cron.monthly. This configuration is specific
to Debian, see the note under DEBIAN SPECIFIC below.  in order.

"In order" implies (to me) that they are run in sequence. As well, I noticed one or two files on my install are prefixed by numbers, apparently to give them a higher priority and run before others.

chicken76 04-20-2013 06:16 AM

Aha! Thanks goumba.


All times are GMT -5. The time now is 10:49 PM.