Forum OpenACS Q&A: Re: crontab postgresql database restore not working - shell script

I found the solution elsewhere. The problem is that the environment variables for Postgresql need to be declared in the script file when run from Crontab but not when run from the terminal.

EG:
export PATH=$PATH:/usr/local/bin/:/usr/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib

Cheers