how to run psql without password prompt when using auth MD5/Password - Mailing list pgsql-general

From eyal edri
Subject how to run psql without password prompt when using auth MD5/Password
Date
Msg-id BANLkTikSxMQMBTMpBNNV6zxCJG+34UcZnA@mail.gmail.com
Whole thread Raw
Responses Re: how to run psql without password prompt when using auth MD5/Password
List pgsql-general
Hi,

Is there a way to run psql -U user -d dbname -c "select....." 

without the psql asking for a password prompt from the user? 

when setting the pg_hba.conf file to use md5 or password.

(btw, i've tried using ident, but couldn't make it work with jboss).

thanks!

Eyal.

pgsql-general by date:

Previous
From: CSS
Date:
Subject: Tuning for a tiny database
Next
From: Grzegorz Szpetkowski
Date:
Subject: Re: how to run psql without password prompt when using auth MD5/Password