Re: assigning password from script

Поиск
Список
Период
Сортировка
От Ashish Karalkar
Тема Re: assigning password from script
Дата
Msg-id 004901c7bc6c$6ea649f0$170211ac@LIONKING.COM
обсуждение исходный текст
Ответ на assigning password from script  ("Ashish Karalkar" <ashish.karalkar@info-spectrum.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 'Session local' variables
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: assigning password from script