Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 2010 21:04:09 +0000
From:      Jeronimo Calvo <jeronimocalvop@googlemail.com>
To:        Rolf Nielsen <listreader@lazlarlyricon.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Crontab not working logwatch.pl [FreeBSD 8 stable]
Message-ID:  <beaf3aa51001131304w619e56c6y3745c1816752f64c@mail.gmail.com>
In-Reply-To: <4B4E329D.4090806@lazlarlyricon.com>
References:  <beaf3aa51001131243u44e86685g1abc4bb367dad93e@mail.gmail.com> <4B4E329D.4090806@lazlarlyricon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
did a crontab -r, a a new crontab -e, using:

* * * * * $HOME/.profile ; /bin/bash /var/log/auto_auth.sh
* * * * * $HOME/.profile ; /usr/bin/perl /local/sbin/logwatch.pl

tailing the /var/log/cron I can see that is being executed every
minute... but no emails arrived with is the proof that the script has
worked.



2010/1/13 Rolf Nielsen <listreader@lazlarlyricon.com>:
> 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
>> 1.31.2.1 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.
>



-- 
() ASCII Ribbon Campaign | Against HTML e-mail
/\  www.asciiribbon.org  | Against proprietary extensions



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?beaf3aa51001131304w619e56c6y3745c1816752f64c>