Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!ucsd!ucbvax!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.unix.internals Subject: Re: Cron - First Saturday of the month Message-ID: <1990Sep6.170907.13006@iwarp.intel.com> Date: 6 Sep 90 17:09:07 GMT References: <19744@orstcs.CS.ORST.EDU> <1990Sep6.044436.3166@rancho.uucp> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Followup-To: poster Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 23 In-Reply-To: rock@rancho.uucp (Rock Kent) In article <1990Sep6.044436.3166@rancho.uucp>, rock@rancho (Rock Kent) writes: | Curt> I'm wondering if anyone has a way of making cron run a job on the | Curt> first Saturday of every month? | | Didn't we just do this? | | 1 3 1-7 * 6 /usr/local/bin/whatever | | Run /usr/local/bin/whatever at 3:01 am on whichever of the first seven | days of the month happens to be a Saturday. We did just do this, and *that* answer is wrong for system V braindamaged cron's that OR together the dow and day fields, rather than AND-ing them together as it has been done for all eternity before some stupid person (at AT&T?) got ahold of it again and attempted to "improve" the code. Don't start the discussion again, folks. -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/