From owner-freebsd-questions Sun May 24 00:44:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA05667 for freebsd-questions-outgoing; Sun, 24 May 1998 00:44:33 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA05629 for ; Sun, 24 May 1998 00:44:20 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.8/8.8.8) with SMTP id AAA09576; Sun, 24 May 1998 00:44:08 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Date: Sun, 24 May 1998 00:44:08 -0700 (PDT) From: Doug White Reply-To: Doug White To: CyberPeasant cc: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/crontab fishiness In-Reply-To: <199805220916.FAA17487@lucy.bedford.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 22 May 1998, CyberPeasant wrote: > The crontab(5) man page asserts that variables declared in a crontab, > such as > > HOME=/var/log > > in /etc/crontab will be passed to the commands executed. In the case > at least of /etc/crontab executing the supplied /etc/weekly script, > this is not the case. > > Place "echo $HOME" in that script, and see "/root", not the expected > "/var/log". This is probably because the user's shell resets $HOME. Remember that the task is run as the user. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message