Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> 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?
regards, tom lane