> hi,
> i install a cronjob to activate webalizer once a day...
> crontab -l answers:
> SHELL=/bin/bash
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
> MAILTO=admin
> 22 2 * * * admin /bin/webalizer -n www.discount.de -o
> /www/vhtdocs/discount/statistik /www/vhtdocs/discount/log/access_log
> when time is come i get a mail message:
> /bin/bash: admin: command not found
> when i use the cron command in a telnet line it works.
admin is not a command. You may want to script that and call the script
from crontab:
0 1 * * * /usr/local/sbin/scripts/webalize.sh > /dev/null 2>&1
#!/bin/sh
#webalize.sh
/sbin/webalizer -n www.discount.de -o /www/vhtdocs/discount/statistik
/www/vhtdocs/discount/log/access_log
then in /etc/aliases have the line:
admin: myuser
root: myuser
That way, if you want to also do something like DNS lookups, you only
need to add another line to have a temporary file for the addresses and
then delete the temp file at the end of the script.
Dan