There are three things to take into account here....environment, 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-env.sh contains the environment variables.
[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 database, when the script is executed at the
> shell command line, I keep getting the error, DBI.pm module can not be located!!
>
> What would cause the script to fail at the command line and work perfectly thru
> the browser. The DBI module is installed!
>
> Thx's
>
> Mike(mickalo)Blezien
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Thunder Rain Internet Publishing
> Providing Internet Solutions that work!
> http://www.thunder-rain.com
> Tel: 1(225)686-2002
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=