I'm having a problem getting crontab to "take" my command to regularly update AWStats. Here's what I did:
- Entered the following at a command prompt:
- In the editor, I entered the following text:
0 2 * * * perl /home/username/awstats/tools/awstats_buildstaticpages.pl -config=domain.com -update -awstatsprog=/home/username/awstats /cgi-bin/awstats.pl -dir=/home/username/domain.com/statistics
(note: This is all one line, my username is replaced with "username" and my domain is replaced with "domain.com". There is also a blank line after the above command line.)
- I save the file and exit the editor, and get the following error message:
[beverly]$ crontab genstats.ctab
"genstats.ctab":0: bad minute
errors in crontab file, can't install.
- Issuing crontab -l tells me that there is no crontab for this user.
So, I looked in the crontab page on the DH Wiki, and followed the command syntax exactly (I think) but I still get the error. I tried creating the file manually and issued a crontab filename command, and that gave the same error.
Anyone have any solution as to how to get this working?