Cron - First Saturday of the month
Barry Shein
bzs at world.std.com
Fri Sep 7 06:09:18 AEST 1990
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 at world.std.com
Purveyors to the Trade | Voice: 617-739-0202 | Login: 617-739-WRLD
More information about the Comp.unix.internals
mailing list