From owner-freebsd-questions@FreeBSD.ORG Fri May 21 01:20:06 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B309316A4CE for ; Fri, 21 May 2004 01:20:06 -0700 (PDT) Received: from a2.scoop.co.nz (aurora.scoop.co.nz [203.96.152.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDD6C43D2D for ; Fri, 21 May 2004 01:20:05 -0700 (PDT) (envelope-from andrew@scoop.co.nz) Received: from localhost (localhost [127.0.0.1]) by a2.scoop.co.nz (8.12.8p2/8.12.11) with ESMTP id i4L8K41X068000 for ; Fri, 21 May 2004 20:20:04 +1200 (NZST) (envelope-from andrew@scoop.co.nz) Date: Fri, 21 May 2004 20:20:04 +1200 (NZST) From: Andrew McNaughton To: freebsd-questions@freebsd.org Message-ID: <20040521195407.W12223@a2.scoop.co.nz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Script won't run from cron X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2004 08:20:06 -0000 Since upgrading from 4.5-RELEASE to 4.8-RELEASE (actually rebuilding the system and mounting the old /home directory), I'm having problems with a process which rebuilds a search engine index. Everything runs fine from the command line, but the same script fails when running from cron. The /bin/sh script runs, but when it goes to fire up the indexing process, that process fails. So far I can't figure out what is different about the environment this is running under which should make it behave differently from cron. I've added commands into the shell script which report on the output of set, id and limits. At the command line I've then verified that id and limits give identical values, and I've used 'env' to start the script with the same environment varibales it gets in cron. That proceeds corectly, leaving me with still no idea why the same script doesn't run from cron any more. Any ideas? Andrew McNaughton Please mail me responses directly. -- No added Sugar. Not tested on animals. May contain traces of Nuts. If irritation occurs, discontinue use. ------------------------------------------------------------------- Andrew McNaughton Living in a shack in Tasmania andrew@scoop.co.nz Between the bush and the sea Mobile: +61 422 753 792 http://staff.scoop.co.nz/andrew/cv.doc http://www.scoop.co.nz/