Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!world!bzs From: bzs@world.std.com (Barry Shein) Newsgroups: comp.unix.internals Subject: Re: Cron - First Saturday of the month Message-ID: Date: 6 Sep 90 20:09:18 GMT References: <19744@orstcs.CS.ORST.EDU> <1990Sep6.044436.3166@rancho.uucp> <1990Sep6.170907.13006@iwarp.intel.com> Sender: bzs@world.std.com (Barry Shein) Organization: The World Lines: 24 In-Reply-To: merlyn@iwarp.intel.com's message of 6 Sep 90 17:09:07 GMT Just run a little wrapper (a shell script would do) every night that has your own rules for whether or not the real program should run today. Here's a start (very generic, SYSV date can simplify this of course): #!/bin/sh DOW=`date|awk '{ print $1 }` DOM=`date|awk '{ print $3 }` if [ "$DOW" = "Sat" -a "$DOM" -le "7" ] then DOIT else exit 0 fi something like that anyhow, -le 7 is probably faulty, but that's not the point, this is advice, not custom programming. -- -Barry Shein Software Tool & Die | {xylogics,uunet}!world!bzs | bzs@world.std.com Purveyors to the Trade | Voice: 617-739-0202 | Login: 617-739-WRLD