I think another common way to go about it is to put something like this into your crontab command:
su - <user id> -c 'run my command here' And then when the crontab runs it logs you in to the right user id with all the environment settings intact. Works especially well if you have it set up in the root crontab, as password prompts are not a problem. There are other variations on this theme. -Will > -----Original Message----- > From: Christian Merz [mailto:[EMAIL PROTECTED] > Sent: Thursday 29 May 2008 03:26 > To: Jonathan Leffler > Cc: [email protected] > Subject: Re: install_driver(Oracle) failed: wrong ELF class: > DynaLoader.pm > > Hi Jonathan, > > you saved my day! > > as as workaround i wrote this shell skript: > > LD_LIBRARY_PATH="/export/home/oracle/product/10.2.0/lib:/expor > t/home/oracle/product/10.2.0/lib32" > export LD_LIBRARY_PATH > /oracle/dba/backup/ora19/DbOnline.pl ora19 > > and now it works. Thank you ! > > ... But this is a workaround i do not like very much. Reexecuting the > skript might be a way (probably i will do this). Is there another > possibility? > > cu, Christian > > Jonathan Leffler wrote: > > > > > > On Wed, May 28, 2008 at 11:47 PM, Christian Merz > > <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > > i set the environment in my skript, the libs are > installed correctly > > - or the script won't run interactively. - - - - - Cisco - - - - - This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.
