popen2 psql

Mage mage at mage.hu
Tue May 3 04:19:13 EDT 2005


Klaus Alexander Seistrup wrote:

>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?
>
>  
>
Thank you. I will check but what about the python scripts? Why can't I
read their *print* output with popen2?

       Mage





More information about the Python-list mailing list