popen2 psql

Klaus Alexander Seistrup klaus at seistrup.dk
Mon May 2 13:09:42 EDT 2005


Mage wrote:

> I tried to write a proxy script for "psql" command. I need some
> query log. I failed to read from the file object.

The psql command is probably linked against readline; did you look
in the ~/.psql_history file?

Cheers,

-- 
Klaus Alexander Seistrup
Magnetic Ink, Copenhagen, Denmark
http://magnetic-ink.dk/



More information about the Python-list mailing list