Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2006 10:55:59 GMT
From:      Spil Oss<spil.oss@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/106442: setting HOME crontab (vixie-cron) not functioning
Message-ID:  <200612071055.kB7Atx6n046438@www.freebsd.org>
Resent-Message-ID: <200612071100.kB7B0Txd032997@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         106442
>Category:       bin
>Synopsis:       setting HOME crontab (vixie-cron) not functioning
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 07 11:00:28 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Spil Oss
>Release:        FreeBSD 6.1-RELEASE-p10
>Organization:
n.a.
>Environment:
FreeBSD spil.somewhere.net 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #3: Mon Oct  2 15:10:32 CEST 2006     root@spil.somewhere.net:/usr/obj/usr/src/sys/BEASTIE61  i386

>Description:
Adding a line like
HOME=/home/user
to a crontab does not change the HOME variable on runtime even though `man 5 crontab` specifies
"HOME, PATH and SHELL may be overridden by settings in the crontab;"

Scheduling `set` results in an email containing
USER=user01
HOME=/home/user01
PS1='$ '
OPTIND=1
PS2='> '
LOGNAME=user01
PPID=80607
PATH=/usr/bin:/bin
SHELL=/bin/sh
IFS=' 	
'

With (a.o.) email-header
X-Cron-Env: <HOME=/home/user01>

Setting e.g. PATH variable in crontab does work
>How-To-Repeat:
Add a line "HOME=string" to crontab
Check environment of crontab
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



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