Re: FW: [ppa-dev] Severe bug in debian - phppgadmin opens

From: Matthew Kirkwood <matthew(at)hairy(dot)beasts(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: FW: [ppa-dev] Severe bug in debian - phppgadmin opens
Date: 2001-11-29 11:30:06
Message-ID: Pine.LNX.4.33.0111291128110.9828-100000@sphinx.mythic-beasts.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 28 Nov 2001, Tom Lane wrote:

> >> Is there a safe way to send username and password to psql?
>
> > The standard way I know of is to use 'expect' and wrap your psql call
> > around that.
>
> Didn't you break that by making psql read the password from /dev/tty?
> Or can 'expect' take control of /dev/tty?

Expect sets up a pty:

$ tty
/dev/pts/6
$ cat script.exp
spawn tty
expect eof
$ expect -f script.exp
spawn tty
/dev/pts/5

Matthew.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message mlw 2001-11-29 12:30:44 RServ
Previous Message Vince Vielhaber 2001-11-29 11:13:51 Re: Sequence docs