From: Gene Sais (Gsais@CO.PALM-BEACH.FL.US)
Date: Wed Jan 22 2003 - 15:35:32 EST
One way of doing it is to put this at the beginning of the script:
WKDAY=`date +%a` # WeekDay
DAY=`date +%d` # Day of Month 01-31
if [ $DAY -le 7 -a "$WKDAY" = "Sat" ]
then
do your processing
else
exit # Then Not 1st Sat of Month, exit
fi
hth,
Gene
>>> smondal@ASSYST.NET 01/22/03 03:26PM >>>
Anyone has scripts that i could borrow so that I can run a job from crontab on
the first saturday of the month.
or can someone give me some tips how I can achieve this.
Thanks
Subrata
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:30 EDT