shell script to run a few commands help!

I'm really sorry

PGUSER=postgres
PGPASSWORD=""
export PGUSER PGPASSWORD

is not required now the "pg_dump bank > backup" command works but the "dropdb bank" command does not work it says "this database does not exist"

But when i execute the same @ bash it works fine.

Wonder what could be the probs ANY WAY THANKS A BUNCH BUDDY FOR STAYING WITH ME

i tried to use cd /var/lib/pgsql but it gives error even "pwd" does not show anything

to execute dropdb bank i must be in the var/lib/pgsql directory

Post ur entire file now...

Thanks i somehow managed to get it right any ca'nt thank u enough.