Just wanted to say "Much Thanks" too all the help on this. Come to find out,
this was the problem, as noted below. If the cron is setup thru the client's web
host manager admin control panel, then the cron scripts works fine, just can't
executed from the command line, directly, thru the shell...
local/lib/perl5/site_perl
echo $PERL5LIB
/path/toyour/script/script.pl
Anton
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 11:20 AM
To: Kokarski, Anton
Subject: Re: Strange Error Can't find DBI
On Wed, 8 Aug 2001 11:16:1
Look at the output of your browser-run environment script. mod_perl IS installed.
And I'll bet dollars to donuts that Brett is right about DBI being loaded via a
mod_perl handler. Work with your sysadmin to get things installed in the right
places.
[EMAIL PROTECTED] wrote:
> On Wed, 8 Aug 2001
Are you using the same account to run the script from the command line and
the browser? Do you perhaps have multiple instances of Perl installed or
possibly different PERL5LIB values for each account? This is always the
case when I run into this situation... the www account that runs the web
app
On Wed, 8 Aug 2001 14:13:57 -0400 (EDT), "Brett W. McCoy"
<[EMAIL PROTECTED]> wrote:
Is it possible that the DBI module is included via a mod_perl handler,
which makes it accessible via your web server, but not accessible via the
command-line? Does it work if you do 'perl -MDBI >O
On Wed, 8 Aug 2001 [EMAIL PROTECTED] wrote:
> First time I've come accross this error.
>
> I've been working on a project user DBI/Perl and everything is working
> perfectly when executing the scripts thru the browser and access the
> database, but when I set up a cron job to cycle thru a databas
things like:
export ORACLE_HOME=$ORACLE_BASE/orahome
export TNS_ADMIN=$ORACLE_HOME/network/admin
try running the following script in your browser and see what variables are there that
are not in your default environment.
try running the same thing from cron, (take out the CGI specific stuff of c
thing like
export PERL5LIB=/path:/path2:/path3
Regards,
Anton
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 10:05 AM
To: Jeff Seger
Cc: [EMAIL PROTECTED]
Subject: Re: Strange Error Can't find DBI
On Wed, 08 Aug 2001 12:51:53 -0
On Wed, 08 Aug 2001 12:51:53 -0400, Jeff Seger
<[EMAIL PROTECTED]>,[EMAIL PROTECTED]
wrote:
>>There are three things to take into account hereenvironment, environment,
>>environment.
>>Your cron job needs to have the same environment as the web server.
>>
>>something like this:
>>
>>02 8 * *
There are three things to take into account hereenvironment, environment,
environment.
Your cron job needs to have the same environment as the web server.
something like this:
02 8 * * * . /dw/prod/DW/Load/config/dw-env.sh; /dw/prod/DW/Load/scripts/daily.pl
where /dw/prod/DW/Load/config/dw
First time I've come accross this error.
I've been working on a project user DBI/Perl and everything is working perfectly
when executing the scripts thru the browser and access the database, but when I
set up a cron job to cycle thru a database, when the script is executed at the
shell command li
11 matches
Mail list logo