I have a shell script (sh) where I create a user and import data to a postgres database<br><br><snip><br>su -c "createuser -A -D -P $PG_user" postgres<br>su -c "psql -d$PG_database -h localhost -U$PG_user -W -f 
postgresql.sql " postgres<br></snip><br><br>when the script executes those command, it ask for a password, how could I do this without have to enter the passwd, I would like that it reads the password from a variabel, that excists in a separate file, like
<br><br><variable file><br>PG_passwd=secret<br>PG_user =username<br>PG_database=simple<br></variable file><br><br><br>Tronn<br>