Re: how to put passwd ?

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: ivan <iv(at)psycho(dot)pl>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: how to put passwd ?
Date: 2003-10-20 19:01:37
Message-ID: 20031020190137.GB20617@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Oct 20, 2003 at 08:56:05PM +0200, ivan wrote:

> how put password to psql, pg_dump etc by same shell script (for ie by
> crontab) , because there are option -W but passwd is reading from /dev/tty
> not from stdin , so i can not use | :(

Have you tried the ~/.pgpass file or the PGPASSWORD environment
variable? They're both documented in the libpq reference.

BTW, you should really be posting this in pgsql-general, not -hackers.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"La naturaleza, tan frágil, tan expuesta a la muerte... y tan viva"

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hans-Jürgen Schönig 2003-10-20 19:02:39 Re: [HACKERS] Writers Wanted
Previous Message Stephen 2003-10-20 19:00:23 Broken links in postgreSQL.org ads