Re: [GENERAL] Providing the password to psql from a script

2004-06-02 Thread Richard Huxton
Willem Herremans wrote: I am developing a client application for postgreSQL in Tcl/Tk (see http://gborg.postgresql.org/project/pfm ). It mainly uses PgTcl or pgintcl. I don't have any problems with those, but I am also trying to call psql from my application for SQL statements typed directly by

[GENERAL] Providing the password to psql from a script

2004-06-01 Thread Willem Herremans
I am developing a client application for postgreSQL in Tcl/Tk (see http://gborg.postgresql.org/project/pfm ). It mainly uses PgTcl or pgintcl. I don't have any problems with those, but I am also trying to call psql from my application for SQL statements typed directly by the user. I have used

Re: [GENERAL] Providing the password to psql from a script

2004-02-14 Thread Martijn van Oosterhout
On Sat, Feb 14, 2004 at 05:11:14PM +0100, Willem Herremans wrote: > I have used the Tcl command > >set psqlChannel [open "|psql $dbname" RDWR] > > to create a channel that effectively becomes the input/output channel > for psql. By writing to that channel, SQL statements are sent to psql, >