LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
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.
 
Old 04-20-2013, 06:16 AM   #3
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 121

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:33 AM.

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