From owner-freebsd-questions@FreeBSD.ORG Mon Jan 19 09:16:57 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51F1C1065670 for ; Mon, 19 Jan 2009 09:16:57 +0000 (UTC) (envelope-from a.smith@ukgrid.net) Received: from mx1.ukgrid.net (mx1.ukgrid.net [89.107.16.164]) by mx1.freebsd.org (Postfix) with ESMTP id 15AA68FC2B for ; Mon, 19 Jan 2009 09:16:57 +0000 (UTC) (envelope-from a.smith@ukgrid.net) Received: from www by mx1.ukgrid.net with local (Exim 4.69; FreeBSD) auth-from www envelope-from a.smith@ukgrid.net id 1LOqEu-000OZd-8F; Mon, 19 Jan 2009 09:16:12 +0000 Received: from blueice1n1.uk.ibm.com (blueice1n1.uk.ibm.com [195.212.29.67]) by horde.ukgrid.net (Horde Framework) with HTTP; Mon, 19 Jan 2009 09:16:12 +0000 Message-ID: <20090119091612.23733vte33zp7we8@horde.ukgrid.net> Date: Mon, 19 Jan 2009 09:16:12 +0000 From: Andy Smith To: Frank Shute References: <20090118154724.780736hzlg7x77k0@horde.ukgrid.net> <20090119060151.GA47488@melon.esperance-linux.co.uk> In-Reply-To: <20090119060151.GA47488@melon.esperance-linux.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-7.0 Sender: World Wide Web Owner Cc: freebsd-questions@freebsd.org Subject: Re: PATH used by www user 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: Mon, 19 Jan 2009 09:16:57 -0000 Hi Frank, thanks for your responce, the PATH isn't set within the perl script =20 with ENV (and the script is identical on both systems). I've already =20 asked the question on the perl mailing list and came to the conclusion =20 the difference was something at the UNIX level on FreeBSD. There are =20 various ways I can easily work around it, but it just seemed so basic =20 I wanted to know how it was being set :S thanks, Andy. Quoting Frank Shute : > > User www doesn't have a shell, profile & hence PATH. > > I don't know how your path is being set but it depends on perl & how > your script looks. > > Look at Env(3) & the other perldocs. > > If you want to do it quick, call traceroute with the path in your > scripts e.g: > > system "/usr/sbin/traceroute $some_host"; > > There's probably a perl module with a "traceroute" in it but I'm > afraid I don't know it offhand. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.