Date: Thu, 14 Jan 2010 01:47:40 +0100 From: "Thomas K." <fwd@gothschlampen.com> To: Kaya Saman <SamanKaya@netscape.net> Cc: freebsd-questions@freebsd.org Subject: Re: Crontab not working?? Message-ID: <20100114004740.GA32382@gothschlampen.com> In-Reply-To: <4B4E6337.5000806@netscape.net> References: <4B4E6337.5000806@netscape.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 14, 2010 at 02:20:07AM +0200, Kaya Saman wrote: Hi, > @reboot root /usr/local/sbin/logwatch.pl > 02 4 * * * root /usr/local/sbin/logwatch.pl this format/syntax is only valid for the system contab. > The interesting thing here is that it shows them as being run: > > rd1# cat /var/log/cron | grep logwatch > Jan 12 04:02:00 rd1 /usr/sbin/cron[5882]: (root) CMD > (root^I/usr/local/sbin/logwatch.pl) > Jan 13 04:02:00 rd1 /usr/sbin/cron[8898]: (root) CMD > (root^I/usr/local/sbin/logwatch.pl) As you can see, the command is not valid. You should at least get an error. If the scripts do not set PATH themselvs, try setting it in the crontab, as the default is rather minimal. Regards Thomas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100114004740.GA32382>