in reply to Re: Re: How do I...Redirect error.log data to a file of my chosing
in thread How do I...Redirect error.log data to a file of my chosing
With this much grief, I would have changed providers long before now ...
That said, you probably want use lib './lib'; if the lib directory is in the same place you keep your CGIs.
That should even work in a chrooted environment, but if it doesn't I suggest some careful probing of where your scripts think they are and what they can see.
Something like...
#!/usr/bin/perl use CGI::Carp qw( warningsToBrowser fatalsToBrowser ); use Cwd qw( getcwd abs_path ); use lib qw( /some/where ); $|++; print "Content-Type: text/plain\n\n"; print "Current directory is ", getcwd(), "\n\n"; foreach my $path ( @INC ) { print $path, " -> ", abs_path($path), "\n"; }
... but adding other checks (like permissions) wouldn't go amiss either.
--k.
|
|---|