cron behavior

John Abreau jabr at blu.org
Mon Dec 31 16:49:04 EST 2001


will <willg at bluesock.org> writes:

> There are a series of Cron substitutes.  Anyone have experience with them 
> and this sort of issue?  I'm wondering if the substitutes have a different 
> method of scheduling that enables them to more adequately handle this sort 
> of thing.  I know with backups and various other business-process sorts of 
> thing, the "fourth monday" thing happens a lot.  So I'd be kind of 
> surprised to find that no one has solved it short of shim scripting.

If you replace cron, or "fix" the "broken" behavior, anything you write 
that
depends on the new behavior will be inherently unportable; it will break
on every other Unix box that hasn't been similarly modified. You also risk
breaking anything that depends on the old behavior, though in this case
I don't imagine that's very likely.

That aside, the obvious, if ugly, solution is to do half the check in cron,
and the other half in the scripts. I.e., run it in cron the whole week of 
22-28 and have the script check if it's Monday before running.


-- 
John Abreau / Executive Director, Boston Linux & Unix 
ICQ 28611923 / AIM abreauj / JABBER jabr at jabber.org / YAHOO abreauj
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 344 bytes
Desc: not available
URL: <http://lists.blu.org/pipermail/discuss/attachments/20011231/8c01bae2/attachment.sig>


More information about the Discuss mailing list