LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 06:32 AM   #1
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 105

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 06:34 AM.
 
Old 04-20-2013, 06:49 AM   #2
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Sid. Arch. In the process of converting to and learning FreeBSD
Posts: 1,023
Blog Entries: 6

Rep: Reputation: 237Reputation: 237Reputation: 237
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, 07:16 AM   #3
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 105

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 08:33 AM
Saving state/ensuring order/one time execution in functional languages Sergei Steshenko Programming 2 06-30-2012 02:06 PM
How to set the SGE job execution order cliffyao Linux - Newbie 1 10-16-2010 11:46 PM
commands to be executed in order for a batch jobs! faizlo Programming 11 01-26-2009 05:43 AM
cron hourly, daily, cron.d jobs don't execute eggsmartha Linux - General 3 09-17-2007 07:37 PM


All times are GMT -5. The time now is 03:01 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration