Re: Cron Job?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux