Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cron behavior



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>



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org