Cron - First Saturday of the month

Randal Schwartz merlyn at iwarp.intel.com
Fri Sep 7 03:09:07 AEST 1990


In article <1990Sep6.044436.3166 at rancho.uucp>, rock at 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 at iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/



More information about the Comp.unix.internals mailing list