in reply to cron vs bash (solved)

added code in a begin block to change the $ENV variable.

PATH and LD_LIBRARY_PATH are important, but LD_LIBRARY_PATH needs to be set before perl starts, so if you set LD_LIBRARY_PATH in your program, you have to restart your program (exec)

programatically setting the LD_LIBRARY_PATH, DBI, DBD::Oracle and LD_LIBRARY_PATH, Re^5: replicating the command 'unset LIBPATH' in perl

These are just workarounds, the real fix is with cron admin config

Replies are listed 'Best First'.
Re^2: cron vs bash
by dorko (Prior) on Jun 04, 2010 at 19:19 UTC
    programatically setting the LD_LIBRARY_PATH did it for me. Specifically, the response by tye.

    Basically, it starts the script, then checks for the right environment variable. If it's not there, it modifies the enviroment, then restarts the script. Ugly, but it works.

    For posterity, it was LD_LIBRARY_PATH setting that needed tweaking.

    Cheers,

    Brent

    -- Yeah, I'm a Delt.