CRON Question

Could someone please tell me how I might specify in cron that I want a job to run only on the "last saturday" of the month?

Thanks.

Not sure that is possible. It would be simpler to schedule the job for every saturday and have the script figure out whether it is the last saturday and whether to run or not. There are canned examples on the net such as:

for i in `cal | awk '{print $6}'`; do
if [ "x" != "x"$i ]; then
day=$i
fi
done

today=`date | awk '{print $3}'`

if [ $day = $today ]; then
'do want you want ...'
fi
exit

There are much more robust scheduling tools out there that can manage scheduled jobs from one point accross your enterprise.

It is also discussed in these forums here.

Cheers,

Keith

Thanks. I'll check it out.