Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

cron not defining PATH



One of my cron jobs failed since PATH was not defined.

I looked at my email headers and saw:

X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/jreed>
X-Cron-Env: <LOGNAME=jreed>
X-Cron-Env: <USER=jreed>
X-Cron-Env: </usr/bin:/bin:/usr/pkg/bin:/usr/local/bin>

Notice the last line probably should have PATH=. I looked at older email 
headers from an old cron and it did have PATH.

This is:

/usr/sbin/cron:
     $NetBSD: crt0.c,v 1.5 2007/09/27 10:51:18 dogcow Exp $
     $NetBSD: cron.c,v 1.6 2010/05/18 21:49:51 christos Exp $
     $NetBSD: database.c,v 1.2 2010/05/06 18:53:17 christos Exp $
     $NetBSD: do_command.c,v 1.2 2010/05/06 18:53:17 christos Exp $
     $NetBSD: entry.c,v 1.2 2010/05/06 18:53:17 christos Exp $
     $NetBSD: env.c,v 1.2 2010/05/06 18:53:17 christos Exp $
     $NetBSD: job.c,v 1.2 2010/05/06 18:53:17 christos Exp $
     $NetBSD: misc.c,v 1.2 2010/05/06 18:53:17 christos Exp $
     $NetBSD: popen.c,v 1.2 2010/05/06 18:53:17 christos Exp $
     $NetBSD: pw_dup.c,v 1.2 2010/05/06 18:53:17 christos Exp $


Home | Main Index | Thread Index | Old Index