From owner-freebsd-questions Fri Dec 3 0:13:44 1999 Delivered-To: freebsd-questions@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id D2FA014D3A for ; Fri, 3 Dec 1999 00:13:38 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.11 #1) id 11tnol-0002T6-00; Fri, 03 Dec 1999 10:11:51 +0200 From: Sheldon Hearn To: zhang xiao Cc: freebsd-questions@FreeBSD.ORG Subject: Re: crontab question In-reply-to: Your message of "Thu, 02 Dec 1999 19:09:33 PST." <19991203030933.16030.qmail@web207.mail.yahoo.com> Date: Fri, 03 Dec 1999 10:11:51 +0200 Message-ID: <9491.944208711@axl.noc.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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