Date: Sun, 24 May 1998 00:44:08 -0700 (PDT) From: Doug White <dwhite@gdi.uoregon.edu> To: CyberPeasant <djv@bedford.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/crontab fishiness Message-ID: <Pine.BSF.3.96.980524004330.9142z-100000@gdi.uoregon.edu> In-Reply-To: <199805220916.FAA17487@lucy.bedford.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980524004330.9142z-100000>