--On 25. Oktober 2007 22:48:42 +0100 Garry Saddington <[EMAIL PROTECTED]> wrote:

I am using zope on windows with an external python method to backup my
database. I am struggling to run the following command:

pg_dump.exe database > file

I have tried using os.popen - no luck
and also subprocess.Popen.

import subprocess
put  file'])

- play with the shell=True|False parameter of Popen()
- why do you use redirection since Popen() provides a proper mechansim for
 reading stderr/stdout
- where is your code where you are calling wait()???

Please try again...


Attachment: pgpOByvLhupcW.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to