I’m trying to follow the directions on these two pages to setup the cron job to run webalizer every night.
The commands themselves work from the command line but cron won’t accept them, failing silently from the command line, or giving an error message if I put the commands in a file and try to set it using the ‘crontab’ command.
my current file (.crontab) looks like this:
00 02 * * * * /home/username/webalizer/webalizer -c /home/username/webalizer/mydomainA.conf >/dev/null 2>&1
00 02 * * * * /home/username/webalizer/webalizer -c /home/username/webalizer/mydomainB.conf >/dev/null 2>&1
then if I call “crontab .crontab” i get:
[color=#CC0000]".crontab":0: bad command[/color]
if i try doing:
crontab -e 00 02 * * * * /home/username/webalizer/webalizer -c /home/username/webalizer/mydomainA.conf >/dev/null 2>&1[/color]
I get nothing and “crontab -l” returns “no crontab for username”
clearly i’m missing somthing here. Can someone set me stright?
ps. all user and domain names were changed to protect the guilty, I KNOW I need to use my real user and domain names as needed…