Hi All,

I got following code in django snippets, but I found that popen2.Popen4
() is not available for Windows, then I changed to popen2.popen4(cmd)
to initiate the backup process, however, popen4(not Popen4) do not
have tochild method, does anyone know how to solve it in windows
platform, thanks!

pipe = popen2.Popen4('pg_dump %s > %s' % (' '.join(args), outfile))

I changed to:(for windows)

pipe = popen2.popen4("pg_dump -h localhost -p 5432 -U username -F c -b
-v -f %s mydb" % outfile)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to