Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » Debian - cron execution order
Uniqs:
362
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Getting Putty terminal to work with HPUX. »
« PCLOS 2009.2  

shearer
Northern Lights
Premium
join:2002-06-18
Toronto, ON
clubs:


1 edit

Debian - cron execution order

On Debian, just suppose I have a crontab for root account like this:

On July 5, 2009 (which is a Sunday), which task will cron execute first? I read man pages for cron & crontab but found no mention of execution order. thanks!

SirMeowmix_III

@windstream.net

Re: Debian - cron execution order

top-down matching on those applicable to the current date/time. If it is 00:00 on July 05, 2009 then:

scriptblablabla1 will execute followed by scriptblahblabla2

shearer
Northern Lights
Premium
join:2002-06-18
Toronto, ON
clubs:

Re: Debian - cron execution order

said by SirMeowmix_III :

top-down matching on those applicable to the current date/time
Thanks. I had a feeling it was by alphabetical order...

SirMeowmix_III

Re: Debian - cron execution order

Not alphabetical, top-down based on the ordering in the respect crontab.

yock
TFTC
Premium
join:2000-11-21
Fairfield, OH

A note to the FreeBSD regarding general Cron behavior states that there is no determination of order for same time cron jobs.

»lists.freebsd.org/pipermail/free···538.html

That makes sense, considering the granularity available to you for scheduling. There are better ways than alpha-numeric sorting to order operations in cron.
--
Have more fun with your GPS.
Geocaching.com

SirMeowmix_III

@windstream.net
It's not processed alphabetically, it's processed in a top-down order based on the ordering in the respective crontab. Should "bla2" appear before "bla1" in the respective crontab it would be executed first.

SirMeowmix_III

@windstream.net
Yock has a good point, to be pedantic, it's top-down but execution is done serially, so bla1 and bla2 will run concurrently but when I was debugging cron bla1 is invoked first followed by bla2.

shearer
Northern Lights
Premium
join:2002-06-18
Toronto, ON
clubs:

Re: Debian - cron execution order

said by SirMeowmix_III :

... execution is done serially, so bla1 and bla2 will run concurrently but when I was debugging cron bla1 is invoked first followed by bla2.
Does cron wait for bla1 to finish first before starting bla2?

yock
TFTC
Premium
join:2000-11-21
Fairfield, OH

Re: Debian - cron execution order

No

nwrickert
sand groper
Premium,MVM
join:2004-09-04
Geneva, IL
If order matters, then change the time of one of them to be sure that they run in the wanted order.
--
AT&T dsl; Speedstream 5100b modem; openSuSE 11.0; firefox 3.0.11

shearer
Northern Lights
Premium
join:2002-06-18
Toronto, ON
clubs:
Ok - understood. Thanks all.

yock
TFTC
Premium
join:2000-11-21
Fairfield, OH

Re: Debian - cron execution order

Understand that it makes no sense for it to wait. If you need one script to finish before another one runs, why not call it from the script you scheduled?
--
Have more fun with your GPS.
Geocaching.com
Forums » Tech and Talk » OS and Software » All Things UnixGetting Putty terminal to work with HPUX. »
« PCLOS 2009.2  


Wednesday, 09-Dec 06:40:02 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [194] Sprint Sued For Distracted Driving Death
· [81] 3G Network Test Says AT&T Is Tops
· [72] Mediacom Unveils 105 Mbps Pricing
· [62] Sprint Poised For A Turnaround?
· [51] WPA Cracker: Test WPA-PSK Networks In 20 Minutes
· [50] The Future Of Wi-Fi Is Bright
· [47] Site Leaks Yahoo, Verizon Fed Data Share Pricing
· [44] Microwaving Your Innards Is Not 'Extreme'
· [39] Verizon LTE: 5-12 Mbps Downstream
· [21] AT&T Releases Network Reporting iPhone App
Most people now reading
· Windows 7 boot manager editing questions [Microsoft Help]
· [How to] Install Asterisk on an Asus WL-520GU router [VOIP Tech Chat]
· Extjs grid combo box. [Webmasters and Developers]
· Maximizing Rogue DPS for 3.1 [World of Warcraft]
· Comcast refused to install 400' feet. [Comcast HSI]
· persistent connection to qw-in-f113.1e100.net on boot [Security]
· Tomato/MLPPP v3 alpha 6 released! [TekSavvy]
· CRTC Response to ME: You will be Band F FOREVER!!! [TekSavvy]
· [WIN7] Outlook express under Windows 7? [Microsoft Help]
· What is the spell hit cap for a lvl 80 full arcane spec mage [World of Warcraft]