psql and passwords

From: Michael Devogelaere <michael(at)mind(dot)be>
To: pgsql-general(at)postgresql(dot)org
Subject: psql and passwords
Date: 2002-04-15 16:41:19
Message-ID: 1018888879.19603.17.camel@cobra.intern.mind.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I've recently installed a beta-release of RedHat which ships PostgreSQL
7.2.1 and have troubles with using psql in non-interactive scripts.

With the previous version, i passed the password with
'echo pass | psql -d db -U user -h server -c "..."'
but that doesn't seem to work anymore (because it reads the password now
from /dev/tty instead of stdin i guess).

Is this a RedHat-specific issue or is it more general ? And of course:
what's the solution ? ;)

Kind regards,
Michael Devogelaere.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2002-04-15 16:57:37 Re: Why does postgres not take into account my index on a bigint column ?
Previous Message Moritz Sinn 2002-04-15 16:19:59 string encryption