How do create a user with a bashscript

Поиск
Список
Период
Сортировка
От A B
Тема How do create a user with a bashscript
Дата
Msg-id dbbf25900809190011v79ecec19rc142f14e991441b@mail.gmail.com
обсуждение исходный текст
Ответы Re: How do create a user with a bashscript  (Andreas Kretschmer <akretschmer@spamfence.net>)
Re: How do create a user with a bashscript  (Devrim GÜNDÜZ <devrim@gunduz.org>)
Список pgsql-novice
Hi.
I want to create a user with the  createuser  command and supply the
password at the command line in a script, like this

#!/bin/bash
createuser  myuser

but I want to supply a password on the command line, is that possible?
The docs tells me no, but does anyone know of a workaround?

В списке pgsql-novice по дате отправления:

Предыдущее
От: "G. J. Walsh"
Дата:
Сообщение: scope of connection id (handler)
Следующее
От: "Sean Davis"
Дата:
Сообщение: Re: Moving data from one set of tables to another?