[CentOS] Cron Job?
Zack Colgan
security-watch-zack at clearbearing.com
Wed May 27 20:39:16 UTC 2009
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
More information about the CentOS
mailing list