Date: Fri, 21 Jun 2019 09:21:00 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238120] cron(8) doesn't set the HOME environment variable to users's home directory when command runs under regular user Message-ID: <bug-238120-227-eE3mxbAj1g@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-238120-227@https.bugs.freebsd.org/bugzilla/> References: <bug-238120-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238120 --- Comment #2 from Yuri Victorovich <yuri@freebsd.org> --- On 12.0-STABLE r347548 GENERIC amd64 Add this line to /etc/crontab: > * * * * * yuri /home/yuri/cron-env-test.sh /home/yuri/cron-env-test.sh contains: > #!/bin/sh > echo "`date`: "$HOME >> /tmp/cron-env-test.txt It printed into /tmp/cron-env-test.txt: > Fri Jun 21 02:18:00 PDT 2019: /var/log -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238120-227-eE3mxbAj1g>
