[us...@httpd] Perl UNIX shell PATH problem with apache www user

2009-01-19 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: [us...@httpd] Perl UNIX shell PATH problem with apache www user

2009-01-19 Thread Davide Bianchi
Andy Smith wrote: Hi List, probably quite a basic question, but where does perl get its PATH variable from when executig shell commands? By the PATH defined for the user that runs the web server, that most of the time is the 'default' PATH. have is that I have the same version of

Re: [us...@httpd] Perl UNIX shell PATH problem with apache www user

2009-01-19 Thread Andy Smith
Hi Davide, yep, apache is running as www, and has no homedir as I mention. And yet the path that apache has set is different between my two servers. My question is how if /etc/profile is the same and the user has no home dir and the perl script is the same on both systems, thanks, Andy.

Re: [us...@httpd] Perl UNIX shell PATH problem with apache www user

2009-01-19 Thread Andy Smith
Hi Davide, yep, apache is running as www, and has no homedir as I mention. And yet the path that apache has set is different between my two servers. My question is how if /etc/profile is the same and the user has no home dir and the perl script is the same on both systems, thanks, Andy.