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)
thanks again, Andy.
#!/usr/bin/perl
use strict;
use warnings;
use CGI::Pretty qw( :standard :xhtml );
use CGI::Carp qw( fatalsToBrowser );
print header();
my @rows = ();
for my $var ( sort keys %ENV ){
push @rows, Tr(
th({ -style=>'font-weight: bold; text-align: right;
', }, $var ),
td({ -style=>'padding-left: 1em; ', }, $ENV{$var} )
);
}
print start_html( '%ENV' );
print table( @rows );
print end_html();
--
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
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/