Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!swrinde!ucsd!ucbvax!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.unix.wizards Subject: Re: Cron - First Saturday of the month Message-ID: <1990Aug9.001850.19494@iwarp.intel.com> Date: 9 Aug 90 00:18:50 GMT References: <19744@orstcs.CS.ORST.EDU> <1990Aug8.185745.16606@iwarp.intel.com> <1990Aug8.214539.1264@watserv1.waterloo.edu> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 44 In-Reply-To: dmcanzi@watserv1.waterloo.edu (David Canzi) In article <1990Aug8.214539.1264@watserv1.waterloo.edu>, dmcanzi@watserv1 (David Canzi) writes: | Apparently, there is at least one version of cron which has somehow | escaped your wizardly notice. Here is what "man 5 crontab" says at | my site: | | Note: the specification of days may be made by two fields | (day of the month and day of the week). If both are speci- | fied as a list of elements, both are adhered to. For exam- | ple, | 0 0 1,15 * 1 | would run a command on the first and fifteenth of each | month, as well as on every Monday. | Interesting, but after finishing reading the manpage (I have that very same manpage on sunos4.1), I notice that it contradicts itself a little later in saying that " 0 0 * * 1 " " would run a command only on Mondays. Now wait a second, since "*" says "any match'll do", this command would run *every* day, not on Mondays, using the "or" logic described earlier in the previous paragraph. I submit that the writers of that there manpage just didn't know what they were talking about. As a real guru hacking the One True Unix, I would then curse the manpage author, and go look at the source. However, since I haven't seen UNIX source (UNIX without source... a mortal sin) for 5 years (gack!!!), I cannot resolve this by myself. Help, someone? Does it really use "or" logic or something even more strangely convoluted? Or is it "and" logic, like it was back in V7 (the One True Unix... system V isn't even close). Yeah, OK, so I'm a bit religious. (SunOS isn't UNIX either, but at least it is upward compatible with V7. :-) Just another old-time UNIX hacker, -- /=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!"=/