Crontab not working?


#1

I’m using AWstats for my site and am trying to setup a cron job to update the stats hourly.

here is what I am using (or trying to use):

0 * * * * perl /home/username/mysite.com/cgi-bin/awstats.pl -config=myvirtualhostname -update >/dev/null

but it doesn’t seem to be working. I’ve searched through many posts, tried several things based on those posts, but have yet to get it to work.

I can execute from the command line manually and it works. Just doesn’t seem to work as crontab.

Thanks in advance.


#2
  1. if you remove the /dev/null bit you would get an e-mail message
  2. probably need to specifiy the path to perl, ie /usr/local/bin/perl
    Though I usually make my scripts executable and then just call them like so:

:cool: Perl / MySQL / HTML+CSS