Massive unit test vs MySQL

Neil Padgen neil.padgen at mon.bbc.co.uk
Mon Sep 8 10:59:53 EDT 2003


On Friday 05 September 2003 15:17, Richard Wesley wrote:

> In article <bja8ls$k1j$1 at nntp0.reith.bbc.co.uk>,
>  Neil Padgen <neil.padgen at mon.bbc.co.uk> wrote:
> 
>> On Thursday 04 September 2003 20:35, Richard Wesley wrote:
>> 
>> > p = os.popen('mysql -u uid -ppassword mydatabase', 'w')
>> > p.write(sql_commands)
>> 
>> p.close()
> 
> Yeah, I tried this, but it had no effect.
> 
> The odd thing is that the process list cleans up _immediately_ when
> the
> script terminates.  Maybe this is some sort of gc problem?
> 

What is in sql_commands?  Maybe there is a semicolon missing from the
end, which might be causing mysql to wait for input.

-- Neil

-- 




More information about the Python-list mailing list