Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2004 10:55:22 +0000 (GMT)
From:      Jan Grant <Jan.Grant@bristol.ac.uk>
To:        Mathias Haas <mathias@haas.se>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Shell scripting woes.
Message-ID:  <Pine.GSO.4.58.0402261053440.8784@mail.ilrt.bris.ac.uk>
In-Reply-To: <403BDF2B.8030400@haas.se>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.58.0402261053440.8784>