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';