Friday, October 22, 2010

Run cron jobs the first Saturday of the month

Running tasks on the first Saturday of the week. Example runs the partition maintenance on Oracle Enterprise Manager - Grid Control every first Saturday of the month.

# OEM Partition Maintenance Run
00 04 * * 0 [ `date +\%e` -le 7 ] && [ -f /opt/oracle/scripts/gc_part_maint.ksh ] && /opt/oracle/scripts/gc_part_maint.ksh > /dev/null 2>&1