bin/106442: setting HOME crontab (vixie-cron) not functioning
Spil Oss
spil.oss at gmail.com
Thu Dec 7 03:01:20 PST 2006
>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 at 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:
More information about the freebsd-bugs
mailing list