Jason Todd Slack-Moehrle wrote:
Hi All,
How does one create a cron job that runs commands like:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=xxx.com -update /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=yyy.com -update
Say every 15 mins?
-Jason
You could create a file in /etc/cron.d, say /etc/cron.d/awstats, with the following contents:
*/15 * * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=xxx.com -update */15 * * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=yyy.com -update
-Zack