Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Dec 1999 10:11:51 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        zhang xiao <zh_xf@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: crontab question 
Message-ID:  <9491.944208711@axl.noc.iafrica.com>
In-Reply-To: Your message of "Thu, 02 Dec 1999 19:09:33 PST." <19991203030933.16030.qmail@web207.mail.yahoo.com> 

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 02 Dec 1999 19:09:33 PST, zhang xiao wrote:

> When I use crontab,it seems the "PATH "in crontab make
> no sense(or was not used);
> I always need to set the sbsolute path to get the
> right result.

Yup.  If you read the crontab(5) manpage, you'll see that the only
environment variables that are set for you are SHELL, LOGNAME and HOME.
You can set an appropriate PATH in your crontab like this:

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

Ciao,
Sheldon.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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