--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. eg: import subprocess subprocess.Popen(['c:/dir/dir/pg_dump.exe','database','>','c:/dir/dir/out 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... -aj
pgpOByvLhupcW.pgp
Description: PGP signature
_______________________________________________ Zope maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
