Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 2009 09:16:12 +0000
From:      Andy Smith <a.smith@ukgrid.net>
To:        Frank Shute <frank@shute.org.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: PATH used by www user
Message-ID:  <20090119091612.23733vte33zp7we8@horde.ukgrid.net>
In-Reply-To: <20090119060151.GA47488@melon.esperance-linux.co.uk>
References:  <20090118154724.780736hzlg7x77k0@horde.ukgrid.net> <20090119060151.GA47488@melon.esperance-linux.co.uk>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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 <frank@shute.org.uk>:

>
> 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.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20090119091612.23733vte33zp7we8>