The Open Source Swiss Army Knife

/unix/commandline/
/unix/commandline/ + sub-categories
http://www.sirfsup.com/
web directory content
    
      

Not logged in
Chat Register Login
return to:  http:/www.sirfsup.com      /unix   /commandline 
Permalink: cron.htm
Title: add
article options : please login   |  print view

make the cronjob called 00webalizer, so that it runs before everything else
crontab -e allows each user to make own cron file
  1. 1-59: minute
  2. 0-23: hour
  3. 1-31: day of month
    0 3 1-31/2 * * root /etc/rsync.daily 1
    odd days
    0 3 2-31/2 * * root /etc/rsync.daily 2
    even days
  4. 1-12: month
  5. day of week: 0 or 7 is sunday, or use names
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

Leave a Reply
Your Name:     anonymous
Your Email:
Website:  
Comments:

The author will be notified of your reply.
return to top