Re: I have a weird issue with a script running under cron

2014-02-18 Thread Jens Rehsack
Am 17.02.2014 um 23:43 schrieb Bruce Johnson john...@pharmacy.arizona.edu: On Feb 17, 2014, at 2:48 PM, John D Groenveld jdg...@elvis.arl.psu.edu wrote: In message 5302803c.4080...@triad.rr.com, Richie writes: Is LD_LIBRARY_PATH exported? It's hard to see whats going on without a

Re: I have a weird issue with a script running under cron

2014-02-18 Thread Martin J. Evans
On 17/02/14 18:50, Bruce Johnson wrote: On Feb 17, 2014, at 11:41 AM, Bruce Ferrell bferr...@baywinds.org wrote: Bruce, The error says your script is attempting to load /usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so for DBD::Oracle. is that the correct path for that library? it looks

Re: I have a weird issue with a script running under cron

2014-02-18 Thread Peter J. Holzer
On 2014-02-17 22:43:58 +, Bruce Johnson wrote: On Feb 17, 2014, at 2:48 PM, John D Groenveld jdg...@elvis.arl.psu.edu wrote: The OP shouldn't need to set a LD_LIBRARY_PATH so long as he built DBD::Oracle with the correct runtime link path, but a simple shell script to see which

Re: I have a weird issue with a script running under cron

2014-02-18 Thread John D Groenveld
In message 20140218110257.ga10...@wsr.ac.at, Peter J. Holzer writes: Yes, so obviously you should run John's little script via cron, too. What is the result? My guess is the OP still hasn't realized that his interactive shell environment is different then his cron and Apache's.

Re: I have a weird issue with a script running under cron

2014-02-18 Thread Bruce Johnson
On Feb 18, 2014, at 4:02 AM, Peter J. Holzer h...@wsr.ac.at wrote: On 2014-02-17 22:43:58 +, Bruce Johnson wrote: On Feb 17, 2014, at 2:48 PM, John D Groenveld jdg...@elvis.arl.psu.edu wrote: The OP shouldn't need to set a LD_LIBRARY_PATH so long as he built DBD::Oracle with the

Re: I have a weird issue with a script running under cron

2014-02-18 Thread John D Groenveld
In message 2076ef99-9f11-4eda-846a-f0a946e85...@pharmacy.arizona.edu, Bruce J ohnson writes: Via cron (with the Oracle environment variables set as in the script in questi on, please read the OP!): SHELL=/bin/sh USER=root LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib ORACLE_SID=PHMWEB

Re: I have a weird issue with a script running under cron

2014-02-18 Thread Bruce Johnson
On Feb 18, 2014, at 10:47 AM, John D Groenveld jdg...@elvis.arl.psu.edu wrote: In message 2076ef99-9f11-4eda-846a-f0a946e85...@pharmacy.arizona.edu, Bruce J ohnson writes: Via cron (with the Oracle environment variables set as in the script in questi on, please read the OP!):