Date: Mon, 3 Jan 2000 10:18:29 +1030 From: Greg Lehey <grog@lemis.com> To: Pekka Savola <Pekka.Savola@netcore.fi> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Huge crontab jobs are not run Message-ID: <20000103101829.F1528@freebie.lemis.com> In-Reply-To: <3.0.6.32.20000102140829.008136d0@netcore.home> References: <3.0.6.32.20000102140829.008136d0@netcore.home>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, 2 January 2000 at 14:08:29 +0200, Pekka Savola wrote: >>> 1 0 * * 1 root /usr/local/sbin/logrotate >>> ----- >>> >>> Will not be run. Logrotate does some really heavy httpd log checking and >>> resolving - Like 1-2 hours job on a P3/500. Replacing >>> /usr/local/sbin/logrotate with some neat little script seems to be run > nicely. >>> Also, 'touch /etc/crontab' doesn't help any. Running the script manually >>> works fine. >>> >>> Is there something I'm missing here? >> >> Well, I'd guess you're looking in the wrong place. This has nothing >> to do with cron. > > Sorry, I don't quite understand this. If this has nothing to do with > crontab, *what* does it have to do with then? You should read to the end of the message before asking questions like this. To quote: >> Any ideas? > > Look at the script. > I run /usr/local/sbin/logrotate from the shell: > > bash-2.03# /usr/local/sbin/logrotate > [works fine] > > I add it to /etc/crontab: > > 1 0 * * 1 root /usr/local/sbin/logrotate > [Won't be run] > > I fail to see what *could* be wrong with the script because it works > on an interactive shell session just fine. If you don't look, you'll always fail. If you had stated this in your original message, you would have got a better reply. Somebody else suggested checking your PATH; I'd agree that this now seems most probable. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000103101829.F1528>