From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 03:01:46 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 55A5316A4CE for ; Thu, 26 Feb 2004 03:01:46 -0800 (PST) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAFF743D1D for ; Thu, 26 Feb 2004 03:01:43 -0800 (PST) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Thu, 26 Feb 2004 11:00:00 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 1AwJAp-00050o-00; Thu, 26 Feb 2004 10:55:23 +0000 Date: Thu, 26 Feb 2004 10:55:22 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Mathias Haas In-Reply-To: <403BDF2B.8030400@haas.se> Message-ID: References: <51804.193.14.163.194.1077641809.squirrel@mail.haas.se><403B9112.1080503@circlesquared.com><52540.192.168.0.97.1077646240.squirrel@webmail.thilelli.net><403B952C.4060706@haas.se> <403BC43B.6030003@infinitebubble.com> <53781.192.168.0.97.1077659656.squirrel@webmail.thilelli.net> <403BD4F8.40101@haas.se> <54147.192.168.0.97.1077663694.squirrel@webmail.thilelli.net> <403BDF2B.8030400@haas.se> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant cc: Julien Gabel cc: freebsd-questions@freebsd.org Subject: Re: Shell scripting woes. 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: Thu, 26 Feb 2004 11:01:46 -0000 On Wed, 25 Feb 2004, Mathias Haas wrote: > Oh my! What stupidity! Of course. I'm afraid sometimes my DOS-roots are > revealed... Thanks! In general, you ought to be aware that cron sets up only a minimal environment. If you want your scripts to run predictably then you probably ought to ensure the first thing they do is to recreate the environment you're after: setting $PATH, the working directory, umask, and so on. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Boycott Arabic numerals! What have they ever done for us?