If I login to postgres and execute the script it RUNS FINE

I have a Linux script and CRON job running under the postgres Linux user

If I run that script in a Lunix CRON (using CENTOS 7) using postgres Linux account it does not appear to login to postgres - everything else in the scripts runs fine.

Any Idea what the issue may be?