Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: cron vs bash

by Anonymous Monk
on Jun 04, 2010 at 14:39 UTC ( [id://843137]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://843137]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found