Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-20-2013, 05:32 AM   #1
Registered: Mar 2009
Distribution: Slackware
Posts: 112

Rep: Reputation: 2
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.

Last edited by chicken76; 04-20-2013 at 05:34 AM.
Old 04-20-2013, 05:49 AM   #2
Senior Member
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian, Arch
Posts: 1,163
Blog Entries: 7

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
From the cron manpage under Debian Wheezy:

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.
Old 04-20-2013, 06:16 AM   #3
Registered: Mar 2009
Distribution: Slackware
Posts: 112

Original Poster
Rep: Reputation: 2
Aha! Thanks goumba.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are cron jobs located when not under /var/spool/cron/root? NotionCommotion Linux - Newbie 6 09-07-2012 07:33 AM
Saving state/ensuring order/one time execution in functional languages Sergei Steshenko Programming 2 06-30-2012 01:06 PM
How to set the SGE job execution order cliffyao Linux - Newbie 1 10-16-2010 10:46 PM
commands to be executed in order for a batch jobs! faizlo Programming 11 01-26-2009 04:43 AM
cron hourly, daily, cron.d jobs don't execute eggsmartha Linux - General 3 09-17-2007 06:37 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration