Password as a command line argument to createuser

From: "Jane Ren" <j2ren(at)ucsd(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Password as a command line argument to createuser
Date: 2007-12-19 06:04:13
Message-ID: 1745.66.27.114.60.1198044253.squirrel@acs-webmail.ucsd.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2007-12-19 06:21:09 Re: Password as a command line argument to createuser
Previous Message Andrew Nesheret 2007-12-19 05:53:09 foreign key constraint, planner ignore index.