Sorry, I missed some important part of my code,
try:
pipe = popen2.Popen4('pg_dump %s > %s' % (' '.join(args),
outfile))
if self.passwd:
pipe.tochild.write('%s\n' % self.passwd) #this
method is only applicable for unix like system
pipe.tochild.close()
except:#on Windows system, there is no Popen4 and tochild
method
pipe = popen2.popen4("pg_dump -h localhost -p 5432 -U
myusername -F c -b -v -f %s mydb" % outfile)
as above-posted, for windows system, how can I input postgresql's
password by using some method like tochild. thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---