Crontab not working?

Crontab not working?

Posted by: greencrest
Posted on: 2004-01-27 12:59:00

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.

Re: Crontab not working?

Posted by: Atropos7
Posted on: 2004-01-27 19:45:00

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:

50 2 * * * /home/username/bin/page_count.pl


cool Perl / MySQL / HTML+CSS

Tags: cron jobawstatscgi bincrontabmysiteperl