Password as a command line argument to createuser - Mailing list pgsql-general

From Jane Ren
Subject Password as a command line argument to createuser
Date
Msg-id 1745.66.27.114.60.1198044253.squirrel@acs-webmail.ucsd.edu
Whole thread Raw
Responses Re: Password as a command line argument to createuser
Re: Password as a command line argument to createuser
Re: Password as a command line argument to createuser
List pgsql-general
Hi,

I need to write a script that creates a new user with a password
automatically.

Is there a way I can specify the password as a command line argument to
createuser?

It looks like postgres does not read from stdin, but from /dev/tty.

Thanks

pgsql-general by date:

Previous
From: Andrew Nesheret
Date:
Subject: foreign key constraint, planner ignore index.
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Password as a command line argument to createuser