The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to set up a cronjob for awstats

Discussion in 'General Discussion' started by pingo, Feb 23, 2003.

  1. pingo

    pingo Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    430
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Does anyone know how to set up a cronjob for awstats to run in the night (US timezones). I am an cronjob newbee - hehe - well, hope that someone will help :)

    John
     
  2. DrChaos

    DrChaos Active Member

    Joined:
    Dec 23, 2001
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    This is examples of lines you can add in the cron file (see your unix reference manual for cron) :
    To run update every day at 04:00, use :
    0 4 * * * /opt/awstats/wwwroot/cgi-bin/awstats.pl -config=mysite -update
    To run update every hour, use :
    0 * * * * /opt/awstats/wwwroot/cgi-bin/awstats.pl -config=mysite -update

    http://awstats.sourceforge.net/docs/awstats_faq.html#CRONTAB
     
  3. pingo

    pingo Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    430
    Likes Received:
    0
    Trophy Points:
    16
    Thank you very much for helping :)

    John
     
Loading...

Share This Page