tye gives a good writeup on LD_LIBRARY_PATH issues.
Me I'd suggest that you try to set the environment correctly for this user
before this (and other) scripts run. This can be done for cron jobs
and other automated situations.
Michael
Comment on Re: programatically setting the LD_LIBRARY_PATH