[CentOS] Postgresql and shell script

Tue Oct 30 15:18:49 UTC 2007
Andy Harrison <aharrison at gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 10/30/07, Tronn Wærdahl  wrote:
>
> PG_passwd=secret
> PG_user =username
> PG_database=simple
>

sudo and .pgpass would be better, but for future reference, just
source the file in your script.

#!/bin/sh
source $HOME/.mypgvars

Now your PG_* variables have values...

- --
Andy Harrison
public key: 0x67518262
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFHJ0tyNTm8fWdRgmIRAmLiAKCJlyYehz0E2Uk7fhbKKTx5pGhRhwCg1tIl
CJCiGCD+K014tvvbUXjOp/0=
=qtJF
-----END PGP SIGNATURE-----