mouse has asked for the wisdom of the Perl Monks concerning the following question:
i have a perl script that connects to an oracle database and therefor i have modified my .profile file in my home directory (i have added some oracle specific environment variables).
my problem is that the perl script needs to be run using 'cron'. since 'cron' uses only a limited environment i get errors that my perl script cannot connect to the oracle database. is there anyone who knows how you can have a perl script execute the .profile file?
thanks in advance!
arjan huijzer
p.s. i have tried to create the variables in %ENV in a BEGIN block, but somehow this doesn't solve the problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: running .profile
by davorg (Chancellor) on May 02, 2001 at 15:58 UTC | |
by mouse (Novice) on May 02, 2001 at 16:33 UTC | |
by kschwab (Vicar) on May 02, 2001 at 16:37 UTC | |
by mouse (Novice) on May 02, 2001 at 17:02 UTC | |
|
Re: running .profile
by stefan k (Curate) on May 02, 2001 at 16:33 UTC | |
|
Re (tilly) 1: running .profile
by tilly (Archbishop) on May 03, 2001 at 07:18 UTC | |
|
Re: running .profile
by DeaconBlues (Monk) on May 02, 2001 at 19:11 UTC | |
|
Re: running .profile
by Anonymous Monk on May 02, 2001 at 18:06 UTC |