# +---------------- 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
// List the crontab settings
# crontab -l
// Edit the crontab settings
# crontab -e
# For example, every 5 minutes to run the /root/bin/prog1
*/5 * * * * /root/bin/prog1
# every Monday 06:00 AM backup the files
0 6 * * 1 /usr/local/sbin/backup.sh
# Each two days period on 06:00 AM backup the files
0 6 */2 * * /usr/local/sbin/cvsbackup.sh
沒有留言:
張貼留言