Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!crdgw1!sungod!davidsen From: davidsen@sungod.crd.ge.com (ody) Newsgroups: comp.unix.questions Subject: Re: How does one specify 'second Tuesday' in a crontab? Message-ID: <1794@crdgw1.crd.ge.com> Date: 21 Aug 89 17:49:42 GMT References: <7613@c3pe.UUCP> Sender: news@crdgw1.crd.ge.com Reply-To: davidsen@crdos1.UUCP (bill davidsen) Distribution: usa Organization: General Electric Corp. R&D, Schenectady, NY Lines: 15 The implementation of cron is really stupid! They could have allowed both day of week and day of month with two lines and then anded the day of week/month fields to do what you want. However, you can get what you want at low cost by running a script every Tuesday and checking the date, as: set `date` if test $3 -lt 8 -o $3 -gt 14; then exit 0; fi # Now do what you really wanted Thanks for pointing this out, I always assumed that the crontab worked in the logical way. bill davidsen (davidsen@crdos1.crd.GE.COM) {uunet | philabs}!crdgw1!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me