Re: assigning password from script - Mailing list pgsql-general

From Ashish Karalkar
Subject Re: assigning password from script
Date
Msg-id 004901c7bc6c$6ea649f0$170211ac@LIONKING.COM
Whole thread Raw
In response to assigning password from script  ("Ashish Karalkar" <ashish.karalkar@info-spectrum.com>)
List 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.marlowe@gmail.com>
To: "Ashish Karalkar" <ashish.karalkar@info-spectrum.com>
Sent: Monday, July 02, 2007 11:17 AM
Subject: Re: [GENERAL] assigning password from script


> On 7/2/07, Ashish Karalkar <ashish.karalkar@info-spectrum.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.


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: 'Session local' variables
Next
From: "Pavel Stehule"
Date:
Subject: Re: assigning password from script