Re: assigning password from script

From: "Ashish Karalkar" <ashish(dot)karalkar(at)info-spectrum(dot)com>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: assigning password from script
Date: 2007-07-02 05:47:02
Message-ID: 004901c7bc6c$6ea649f0$170211ac@LIONKING.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for your replay Scott,

I am using just sql script
and there is no option like pwd with createuser command

With Regards
Ashish...

----- Original Message -----
From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Ashish Karalkar" <ashish(dot)karalkar(at)info-spectrum(dot)com>
Sent: Monday, July 02, 2007 11:17 AM
Subject: Re: [GENERAL] assigning password from script

> On 7/2/07, Ashish Karalkar <ashish(dot)karalkar(at)info-spectrum(dot)com> wrote:
>>
>>
>> Hello All,
>>
>> I want to create a user through script and dont want user to assign
>> password
>> interactively, I want it to be assigned through some file or anything
>> else
>>
>> some this like
>>
>> createuser -P ***** OR createuser -P <file >
>>
>> Is there any way?
>
> What scripting language are you using?
>
> in bash you can do something like:
>
> pwd=`cat /home/pgsql/password`
>
> to get it.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-07-02 05:49:56 Re: 'Session local' variables
Previous Message Ashish Karalkar 2007-07-02 05:43:54 Tables not created in proper schema