Translate into your own language

Thursday, March 17, 2016

Crontab example

Crontab example

[oracle@host1 ~]$ crontab -l
#.---------------- minute (0 - 59)
#|  .------------- hour (0 - 23)
#|  |  .---------- day of month (1 - 31)
#|  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
#|  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7)  OR sun,mon,tue,wed,thu,fri,sat
#|  |  |  |  |
#*  *  *  *  *  command to be executed
00 22 * * * /home/oracle/scripts/purge_logs.sh 2>/dev/null

00 08,19 * * * /home/oracle/scripts/rman/cleanup_archived_logs_all_dbs_new.ksh > /dev/null 2>&1

## OSWatcher
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/oracle/scripts/rman/OSwatcher.sh > /dev/null 2>&1
#*/5 * * * * $HOME/ksb/GenerateConnections.sh > /dev/null 2>&1
#00 6 * * 6 $HOME/ksb/GenerateConnections.sh > /dev/null 2>&1

No comments:

Post a Comment