Tuesday, September 28, 2010

Cron format - crontab


# +---------------- minute (0 - 59)
# |  +------------- hour (0 - 23)
# |  |  +---------- day of month (1 - 31)
# |  |  |  +------- month (1 - 12)
# |  |  |  |   +---- day of week (0 - 6) (Sunday=0 or 7)
# |  |  |  |    |
   *  *  *  *  *  command to be executed

 Examples:

00 23 * * 0,2,4,6 /bin/ksh /home/rupam/rman_hot_backup.sh orcl 1> /home/rupam/BACKUP/backup.log 1<&1

20 30 * * * /bin/ksh /home/rupam/collect_partition_stats.sh 1> /dev/null 2>&1