Looks like a bug (or odd intended practice) in cron not honoring the PATH variable.

Glen Barber gjb at FreeBSD.org
Sun Jan 29 01:36:04 UTC 2012


Hi,

On Sat, Jan 28, 2012 at 04:45:01PM -0800, Eric Bullen wrote:
> Hi All,
> 
> I'm running the following:
> 
> FreeBSD x 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
> 2012     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
> 
> I couldn't figure out why SOME of root's cronjobs weren't running, and
> others were. Here's my test crontab for root:
> 
> 
> #
> PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/user/local/bin

Looks to me like '/user/local/bin' is more likely the problem.  It
should be '/usr/local/bin' (note the lack of 'e').

Regards,

Glen



More information about the freebsd-stable mailing list