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

Поиск
Список
Период
Сортировка
От Matthew Kirkwood
Тема Re: FW: [ppa-dev] Severe bug in debian - phppgadmin opens
Дата
Msg-id Pine.LNX.4.33.0111291128110.9828-100000@sphinx.mythic-beasts.com
обсуждение исходный текст
Ответ на Re: FW: [ppa-dev] Severe bug in debian - phppgadmin opens up  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Vince Vielhaber
Дата:
Сообщение: Re: Sequence docs
Следующее
От: mlw
Дата:
Сообщение: RServ