pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hemapriya <priyam_1121@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Connect to postgres from a script using password
Date: Thu, 8 Jul 2004 09:07:30 -0700 (PDT)
Message-ID: <20040708160730.73409.qmail@web21326.mail.yahoo.com> (raw)

Hi,

Can anyone tell me how to connect to postgres from a
shell script using password. If i use psql -UUser db
-W option it prompts for password everytime.. 
Is there anyway we can have the password included in
psql login command.?

Thanks
Priya


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail



view thread (3+ messages)  latest in thread

Message-ID: <20040708160730.73409.qmail@web21326.mail.yahoo.com>
Permalink:  ../20040708160730.73409.qmail@web21326.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040708160730.73409.qmail@web21326.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: priyam_1121@yahoo.com
  Subject: Re: Connect to postgres from a script using password
  In-Reply-To: <20040708160730.73409.qmail@web21326.mail.yahoo.com>
  References: <20040708160730.73409.qmail@web21326.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox