From owner-freebsd-questions@FreeBSD.ORG Wed Oct 12 15:59:16 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1583B16A41F for ; Wed, 12 Oct 2005 15:59:16 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD97143D5F for ; Wed, 12 Oct 2005 15:59:13 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 63EC7CD4D1F for ; Wed, 12 Oct 2005 11:59:12 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Wed, 12 Oct 2005 11:59:12 -0400 X-Sasl-enc: jDowJwRA4IiaOsEiWgoYAKFXSsAskH1I3gG4BRIttcLL 1129132751 Received: from gumby.localdomain (88-104-201-140.dynamic.dsl.as9105.com [88.104.201.140]) by frontend2.messagingengine.com (Postfix) with ESMTP id 8B1DC5703B5 for ; Wed, 12 Oct 2005 11:59:11 -0400 (EDT) From: RW To: freebsd-questions@freebsd.org Date: Wed, 12 Oct 2005 16:59:03 +0100 User-Agent: KMail/1.8.2 References: <20051010054556.BB30.GERARD@seibercom.net> <434B9883.3000108@speechpro.com> In-Reply-To: <434B9883.3000108@speechpro.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510121659.05550.list-freebsd-2004@morbius.sent.com> Subject: Re: portmanager X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 15:59:16 -0000 On Tuesday 11 October 2005 11:48, Igor Robul wrote: > Gerard Seibert wrote: > >***** REPLY SEPARATOR ***** > >On 10/10/2005 5:45:56 AM, Gerard Seibert Replied: > > > >Would it be possible to issue a $PATH statement from within the CRON to > >alleviate this problem? I have not actually tried this method, but I do > >use it for other programs that I run from CRON and it seems to works > >just fine. > > You can always add shell script wrapper, which sets PATH. This way you > can avoid adding functions to cron. I'm probably missing something, because I can't see what the problem is. crontab(5) says you can define environmental variables in a crontab; and the default system crontab already has a PATH variable pre-defined, although it doesn't include /usr/local/bin in the path.