I have a strange problem with cron which is skipping pg_restore command (Postgres Restore) in the script file and not reporting any errors in the log file even if stderr is enabled. Could any one help what I am doing wrong?
Update:
Added Distribution Info and Cron,
I am using CentOS release 5.4 (Final) distribution with 64 bit package and my cron job is,
51 14 * * * /opt/scripts/test.sh 2>&1 >> /opt/logs/test.txt
Note: This is happening if backup(*.tar) archive has any errors but restores if I run the script manually.
Thanks,
Karthik
The problem is with the postgres version and the installed CentOS because I used external repository to download the latest version of postgres and learned that its always best to download the postgres version supported and verified by centos team from the same repository only.