Cron - First Saturday of the month

Ed Anselmo anselmo-ed at cs.yale.edu
Sat Aug 11 02:42:38 AEST 1990


I peeked at the sources -- the BSD cron "ands" all the fields
together.

I don't have Sun 4.x sources, but under SunOS 4.0.3, I saw
the same behavior as David Canzi saw.

So, with a crontab like:

28 12 1-5 * 5 anselmo date > /homes/facility/anselmo/temp/www
28 12 7-11 * 1 anselmo date > /homes/facility/anselmo/temp/xxx
28 12 1-5 * 1 anselmo date > /homes/facility/anselmo/temp/yyy
28 12 7-11 * 5 anselmo date > /homes/facility/anselmo/temp/zzz

running on Fri Aug 10, under the BSD cron, only zzz got created.
Running under Sun 4.x cron (with the crontab entries suitably
modified), www, xxx, and zzz got created.
-- 
Ed Anselmo   anselmo-ed at cs.yale.edu   {harvard,cmcl2}!yale!anselmo-ed



More information about the Comp.unix.wizards mailing list