Perl UNIX shell PATH problem

2009-01-16 Thread Andy Smith
Hi list, probably quite a basic question, but where does perl get its PATH variable from when executig shell commands? My problem is running Tr.pm which is part of the open source tool smokeping, it does some nice things with traceroute. The weird problem I have is that I have the same

Re: Perl UNIX shell PATH problem

2009-01-16 Thread Andy Smith
Hi Shawn, yep, thats what Im saying, the profile is the same on each OS and the www user has no homedir, so the www user should have the same path on both. Also PATH is set the same in /etc/rc on both systems. And, sorry I didnt mention but the path to traceroute on both is /usr/sbin/tr

Re: Perl UNIX shell PATH problem

2009-01-16 Thread Andy Smith
info from anywhere special its going to be a purely UNIX issue, thanks for your help, Andy. Quoting "Mr. Shawn H. Corey" : On Fri, 2009-01-16 at 16:12 +0000, Andy Smith wrote: Is traceroute a shell script? If it is, the error may be from a missing progr

Re: Perl UNIX shell PATH problem

2009-01-16 Thread Andy Smith
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, an

Re: Perl UNIX shell PATH problem

2009-01-18 Thread Andy Smith
Hi, yep, /etc/profile the same on both systems: ls -ld /etc/profile* -rw-r--r-- 1 root wheel 2032 Jan 16 15:40 /etc/profile -rw-r--r-- 1 root wheel 645 Jan 16 15:40 /etc/profile.old ls -ld /etc/profile* -rw-r--r-- 1 root wheel 2032 Jul 13 2006 /etc/profile (I copied the profile f