Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: setting environment variable issue (crontab)

by toolic (Bishop)
on Aug 09, 2011 at 17:34 UTC ( [id://919510]=note: print w/replies, xml ) Need Help??


in reply to setting environment variable issue

When my script uses non-Core Perl modules, I need to use the full path to the perl executable in my crontab file:
* * * * * /data/opt/pkg/bin/perl script.pl
You may also need to add the module path using -I:
* * * * * /data/opt/pkg/bin/perl -I/data/oracle64/product/11.1.0/clien +t_1/lib script.pl

Replies are listed 'Best First'.
Re^2: setting environment variable issue (crontab)
by Samy_rio (Vicar) on Aug 09, 2011 at 18:04 UTC

    Actual problem is to set the Oracle client library path not perl library path. "oracle.so" file is present and its load into my script. Only think is I can't able to connect.

    Oracle client configured properly in unix. Perl script is working fine in command prompt.

    Through crontab only its not working. Can you please suggest me any good way to do it?

    Regards,
    Velusamy R.


    eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2025-12-13 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (93 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.