From owner-freebsd-questions Sun Jan 2 15:49:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id D8BDE14D2D for ; Sun, 2 Jan 2000 15:49:20 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id KAA37380; Mon, 3 Jan 2000 10:18:29 +1030 (CST) Date: Mon, 3 Jan 2000 10:18:29 +1030 From: Greg Lehey To: Pekka Savola Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Huge crontab jobs are not run Message-ID: <20000103101829.F1528@freebie.lemis.com> References: <3.0.6.32.20000102140829.008136d0@netcore.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <3.0.6.32.20000102140829.008136d0@netcore.home> WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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