Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    428
    Likes Received:
    0
    Trophy Points:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. DrChaos

    DrChaos Active Member

    Joined:
    Dec 23, 2001
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    306
    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:
    428
    Likes Received:
    0
    Trophy Points:
    166
    Thank you very much for helping :)

    John
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice