Re: postgres backup script and popen2

2007-02-08 Thread flupke
flupke schreef: Thanks for all the info. I'm sure i will get it right this time :) Benedict -- http://mail.python.org/mailman/listinfo/python-list

Re: postgres backup script and popen2

2007-02-08 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > On 8 feb, 10:27, Maël Benjamin Mettler <[EMAIL PROTECTED]> wrote: > > > flupke schrieb: > > > i made a backup script to backup my postgres database. > > > Problem is that it prompts for a password. It thought i > >

Re: postgres backup script and popen2

2007-02-08 Thread Jean-Paul Calderone
On 8 Feb 2007 09:18:26 -0800, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >On 8 feb, 13:29, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: >> On 8 Feb 2007 08:23:49 -0800, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >> >On 8 feb, 10:27, Maël Benjamin Mettler <[EMAIL PROTECTED]> wrote: >> >> flupk

Re: postgres backup script and popen2

2007-02-08 Thread Gabriel Genellina
On 8 feb, 13:29, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On 8 Feb 2007 08:23:49 -0800, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > >On 8 feb, 10:27, Maël Benjamin Mettler <[EMAIL PROTECTED]> wrote: > >> flupke schrieb: > >> > i made a backup script to backup my postgres database. > >> >

Re: postgres backup script and popen2

2007-02-08 Thread Jean-Paul Calderone
On 8 Feb 2007 08:23:49 -0800, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >On 8 feb, 10:27, Maël Benjamin Mettler <[EMAIL PROTECTED]> wrote: > >> flupke schrieb: >> > i made a backup script to backup my postgres database. >> > Problem is that it prompts for a password. It thought i >> > could solv

Re: postgres backup script and popen2

2007-02-08 Thread Gabriel Genellina
On 8 feb, 10:27, Maël Benjamin Mettler <[EMAIL PROTECTED]> wrote: > flupke schrieb: > > i made a backup script to backup my postgres database. > > Problem is that it prompts for a password. It thought i > > could solve this by using popen2. > > Use pexpect:http://pexpect.sourceforge.net/ pexpect

Re: postgres backup script and popen2

2007-02-08 Thread Maël Benjamin Mettler
Use pexpect: http://pexpect.sourceforge.net/ flupke schrieb: > Hi, > > i made a backup script to backup my postgres database. > Problem is that it prompts for a password. It thought i > could solve this by using popen2. > I tested popen2 with dir (i'm on windows 2000, python 2.4.3) > and it works

postgres backup script and popen2

2007-02-08 Thread flupke
Hi, i made a backup script to backup my postgres database. Problem is that it prompts for a password. It thought i could solve this by using popen2. I tested popen2 with dir (i'm on windows 2000, python 2.4.3) and it works. However when i try popen2 and my pg_dump command, it prompts for a passwor