On 2009-06-14, Garry Saddington <[email protected]> wrote:
> I ahve the following python file that I am running as an external method
> in Zope.
>
> def backup():
> import os
> os.popen("c:/scholarpack/postgres/bin/pg_dump scholarpack >
> c:/scholarpack/ancillary/scholarpack.sql")
are you sure you're using os.popen correctly?
you don't appear to be waiting for the pg_dump process to finish.
> data=open('c:/scholarpack/ancillary/scholarpack.sql','r')
> r=data.read()
> data.close
> return r
>
--
Sent via pgsql-general mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general