Re: wnat ot edit pg_hba.conf file from command prompt

Lists: pgsql-general
From: sm <shilpa(dot)sadiwala(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: wnat ot edit pg_hba.conf file from command prompt
Date: 2011-05-02 11:24:20
Message-ID: 1304335460911-4364462.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

hi,
i want ot modify the pg_hba.conf file from command prompt i tried this
command
C:\Program Files\Postgresql\8.4\bin>pgadmin3/ch:"C:/program
files/postgresql/8.4/data/pg_hba.conf
but with this a window gets open and there is option to change methos
md5 to trust, is ther any parameters to pass with this command to edit
“pg_hba.conf” file silently without user interaction

--
View this message in context: http://postgresql.1045698.n5.nabble.com/wnat-ot-edit-pg-hba-conf-file-from-command-prompt-tp4364462p4364462.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: sm <shilpa(dot)sadiwala(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: wnat ot edit pg_hba.conf file from command prompt
Date: 2011-05-02 13:34:32
Message-ID: 4DBEB2E8.4020200@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On 02/05/2011 12:24, sm wrote:
> hi,
> i want ot modify the pg_hba.conf file from command prompt i tried this
> command
> C:\Program Files\Postgresql\8.4\bin>pgadmin3/ch:"C:/program
> files/postgresql/8.4/data/pg_hba.conf
> but with this a window gets open and there is option to change methos
> md5 to trust, is ther any parameters to pass with this command to edit
> “pg_hba.conf” file silently without user interaction

Well, pg_hba.conf is just a plain text file, if that helps.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie


From: Sim Zacks <sim(at)compulab(dot)co(dot)il>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: wnat ot edit pg_hba.conf file from command prompt
Date: 2011-05-02 14:28:48
Message-ID: 4DBEBFA0.7040505@compulab.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On 05/02/2011 02:24 PM, sm wrote:

> hi,
> i want ot modify the pg_hba.conf file from command prompt i tried this
> command
> C:\Program Files\Postgresql\8.4\bin>pgadmin3/ch:"C:/program
> files/postgresql/8.4/data/pg_hba.conf
> but with this a window gets open and there is option to change methos
> md5 to trust, is ther any parameters to pass with this command to edit
> “pg_hba.conf” file silently without user interaction
>
sed for windows - http://gnuwin32.sourceforge.net/packages/sed.htm


From: Leif Biberg Kristensen <leif(at)solumslekt(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: wnat ot edit pg_hba.conf file from command prompt
Date: 2011-05-02 14:51:15
Message-ID: 201105021651.15488.leif@solumslekt.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Monday 02 May 2011 16:28:48 Sim Zacks wrote:

> sed for windows - http://gnuwin32.sourceforge.net/packages/sed.htm

Whatever happened to edlin?

regards, Leif


From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Leif Biberg Kristensen <leif(at)solumslekt(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: wnat ot edit pg_hba.conf file from command prompt
Date: 2011-05-02 14:57:59
Message-ID: 4DBEC677.5020304@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On 02/05/2011 15:51, Leif Biberg Kristensen wrote:
> On Monday 02 May 2011 16:28:48 Sim Zacks wrote:
>
>> sed for windows - http://gnuwin32.sourceforge.net/packages/sed.htm
>
> Whatever happened to edlin?

Goodness, I'd forgotten all about that - been a long time... Wikipedia
says that it was removed from Windows at some point, though there are a
couple of ports of it knocking around still.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie


From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: rod(at)iol(dot)ie
Cc: Leif Biberg Kristensen <leif(at)solumslekt(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: wnat ot edit pg_hba.conf file from command prompt
Date: 2011-05-02 20:28:58
Message-ID: BANLkTimCV8ONVbZD0-=XGHKCBHKUaGX8jg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Mon, May 2, 2011 at 8:57 AM, Raymond O'Donnell <rod(at)iol(dot)ie> wrote:
> On 02/05/2011 15:51, Leif Biberg Kristensen wrote:
>>
>> On Monday 02 May 2011 16:28:48 Sim Zacks wrote:
>>
>>> sed for windows - http://gnuwin32.sourceforge.net/packages/sed.htm
>>
>> Whatever happened to edlin?
>
> Goodness, I'd forgotten all about that - been a long time... Wikipedia says
> that it was removed from Windows at some point, though there are a couple of
> ports of it knocking around still.

In all seriousness though, use anything BUT notepad in windows. Any
good text editor will do.