Crontab not working logwatch.pl [FreeBSD 8 stable]
listreader at lazlarlyricon.com
Wed Jan 13 20:52:48 UTC 2010
On 2010-01-13 21:43, Jeronimo Calvo wrote:
> Hi folks,
> Im having probs when a root crontab located on /var/cron/tabs/root
> with this content
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.DUtgfVoBT0 installed on Wed Jan 13 20:08:29 2010)
> # (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v
> 220.127.116.11 2009/08/03 08:13:06 kensmith Exp $)
> * * * * * ~/.profile ; /bin/bash /var/log/auto_auth.sh
> * * * * * ~/.profile ; /usr/bin/perl /local/sbin/logwatch.pl
> both of them are sending logs to my email, when runned from the
> command line works, but not from crontab
> any ideas?
The keywords here are
# DO NOT EDIT THIS FILE - edit the master and reinstall.
Either edit the system crontab, /etc/crontab, or, to edit root's
crontab, run crontab -e as root.
More information about the freebsd-questions