Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Jul 2003 20:45:38 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Dave McCammon <davemac11@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: crontab same time execution order
Message-ID:  <3F04CE32.6040204@mac.com>
In-Reply-To: <20030703212822.79103.qmail@web41414.mail.yahoo.com>
References:  <20030703212822.79103.qmail@web41414.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dave McCammon wrote:
> If two entries in the crontab are for the same time,
> which entry gets ran first?

It's not deterministic, or if it happens to be so under FreeBSD, it's not on 
other platforms and you should not rely on a particular order.

If you've got commands which depend on each other in cron, do something like:

	command1 ; command2 ; command3

...or...

	command1 && command2 && command3

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F04CE32.6040204>