Re: [ADMIN] connect to postgres from shell scripts

2005-08-25 Thread Chris Travers
Hemapriya wrote: Hi, I would like to know how to connect to postgres from shell scripts using a password protected user. psql is the simple way. Is there a way to embed the password in psql login. It keeps prompting for the passwords. Use the .pgpass file to store the password. Best

Re: [ADMIN] connect to postgres from shell scripts

2005-08-22 Thread Tom Lane
Devrim GUNDUZ <[EMAIL PROTECTED]> writes: > psql checks for PGUSER, PGPASSWORD, PGHOST, PGPORT, PGDATABASE and some > other environmental variables. Export relevant values to the parameters. PGPASSWORD is deprecated because it is insecure on some platforms (to wit, those where other users can see

Re: [ADMIN] connect to postgres from shell scripts

2005-08-22 Thread Jason Minion
PROTECTED] Behalf Of Hemapriya Sent: Monday, August 22, 2005 10:43 AM To: pgsql-admin@postgresql.org Subject: [ADMIN] connect to postgres from shell scripts Hi, I would like to know how to connect to postgres from shell scripts using a password protected user. Is there a way to embed the

Re: [ADMIN] connect to postgres from shell scripts

2005-08-22 Thread Devrim GUNDUZ
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On Mon, 22 Aug 2005, Hemapriya wrote: I would like to know how to connect to postgres from shell scripts using a password protected user. Is there a way to embed the password in psql login. It keeps prompting for the passwords. psql checks f

[ADMIN] connect to postgres from shell scripts

2005-08-22 Thread Hemapriya
Hi, I would like to know how to connect to postgres from shell scripts using a password protected user. Is there a way to embed the password in psql login. It keeps prompting for the passwords. Any hint is appreciated. Thanks Priya