Cron - First Saturday of the month

Chip Salzenberg chip at tct.uucp
Sat Aug 11 03:46:26 AEST 1990


According to dmcanzi at watserv1.waterloo.edu (David Canzi):
>if [ `date | sed 's/^... ...  *\([^ ]*\) .*/\1/'` -le 7 ]

At least on SysV, this is working too hard!  Use this instead:

	if [ "`date +%d`" -le 7 ]

Manual pages are wonderful things...
-- 
Chip Salzenberg at ComDev/TCT     <chip at tct.uucp>, <uunet!ateng!tct!chip>



More information about the Comp.unix.wizards mailing list