From: Chris Travers <chris@metatrontech.com>
To: Hemapriya <priyam_1121@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Re: connect to postgres from shell scripts
Date: Mon, 22 Aug 2005 10:47:38 -0700
Message-ID: <430A0FBA.80507@metatrontech.com> (raw)
In-Reply-To: <20050822154246.28488.qmail@web34210.mail.mud.yahoo.com>
References: <20050822154246.28488.qmail@web34210.mail.mud.yahoo.com>
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 Wishes,
Chris Travers
Metatron Technology Consulting
Attachments:chris.vcf (text/x-vcard, 125B) download
begin:vcard
fn:Chris Travers
n:Travers;Chris
email;internet:chris@metatrontech.com
x-mozilla-html:FALSE
version:2.1
end:vcard
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: chris@metatrontech.com, priyam_1121@yahoo.com
Subject: Re: connect to postgres from shell scripts
In-Reply-To: <430A0FBA.80507@metatrontech.com>
References: <20050822154246.28488.qmail@web34210.mail.mud.yahoo.com> <430A0FBA.80507@metatrontech.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