Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 2006 10:21:22 -0600
From:      Tim Daneliuk <tundra@tundraware.com>
To:        Randy Pratt <bsd-unix@comcast.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Path And 'cron'
Message-ID:  <43F9EC82.80609@tundraware.com>
In-Reply-To: <20060219164805.0de1772d.bsd-unix@comcast.net>
References:  <43F8E25D.5030503@tundraware.com> <20060219164805.0de1772d.bsd-unix@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Randy Pratt wrote:

> On Sun, 19 Feb 2006 15:25:49 -0600
> Tim Daneliuk <tundra@tundraware.com> wrote:
> 
> 
>>Where is the default path for cron jobs established? (And can it
>>be changed...)
>>
> 
> 
> Take a look at:
> 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-cron.html
> 
> and see if that answers your question.
> 
> Best regards,
> 
> Randy
> --
> 

Well ... it answered my question partially.  But as I looked back over
it, I realized my central questions are still unanswered:

   If I do not have a PATH= statement in a particular user's crontab,
   what is used for a default PATH?

   Is the path in /etc/crontab inherited somehow?

   Given that the default shell is /bin/sh, are the settings
   in /etc/profile observed?  If no PATH is established there either,
   what will cron use?

I am trying to determine the best place to establish correct global
PATH settings for all cron users so I don't have to edit each users'
crontab file when file locations are updated or changed.

TIA,

-- 
----------------------------------------------------------------------------
Tim Daneliuk     tundra@tundraware.com
PGP Key:         http://www.tundraware.com/PGP/




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