Re: pg_dump command inside shell scripts - Mailing list pgsql-general

From Richard Huxton
Subject Re: pg_dump command inside shell scripts
Date
Msg-id 200210081504.29059.dev@archonet.com
Whole thread Raw
In response to pg_dump command inside shell scripts  (Elielson Fontanezi <ElielsonF@prodam.sp.gov.br>)
List pgsql-general
On Tuesday 08 Oct 2002 2:35 pm, Elielson Fontanezi wrote:
> Hi Folks!
>
>     Again I need a help from you!
>
>     I have develop a shell script (seen below) to do dump and vaccum
> automatically.

>     But now I need change the $PGDATA/*hba.conf file as it was originally
> and
> face the password prompt again.

Do a search on "expect" - probably included with your system and designed for
this sort of interactive chatting (traditionally with a modem). There's also
a perl module to do the same.

- Richard Huxton

pgsql-general by date:

Previous
From: Justin Clift
Date:
Subject: Re: Rép. : Re: Hot Backup
Next
From: Tom Lane
Date:
Subject: Re: How to find out about index