On Fri, 2009-01-16 at 19:08 +0000, Andy Smith wrote:
> Hi Thanks for the test code, yep the paths are different:
> 
> working server: PATH   
>         
> /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
> 
> not working server: PATH        /bin:/usr/bin
> 
> Im still searching for where this is set, as mentioned the www user  
> has no home dir, and Ive grep'ed everying under /etc for scripts
> that  
> set PATH with no joy (that is no joy of any that set the path to
> this  
> value)
> 

Try:
ls -ld /etc/profile* /etc/bash*

In Perl, before you call traceroute:

$ENV{PATH} .= 
':/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin';


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

"It would appear that we have reached the limits of what it is
 possible to achieve with computer technology, although one should
 be careful with such statements, as they tend to sound pretty silly
 in 5 years."
   --John von Neumann, circa 1950


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to