Postgres createuser.exe silent execution from batch script

Posted by Woot4Moo on Stack Overflow See other posts from Stack Overflow or by Woot4Moo
Published on 2010-03-22T15:15:47Z Indexed on 2010/03/22 15:31 UTC
Read the original article Hit count: 546

Filed under:
|
|
|

I am finding myself with the issue of needing to execute the postgres createuser.exe from a batch script and cannot get it to stop prompting me with the following:

Enter name of role to add:

my batch script looks like this:

echo calling createuser! createuser username %super_user% -s -U Super_Postgres s -q

Where %super_user% is a command line argument. Any help would be greatly appreciated, this is the documentation that I am referring too: postgres

© Stack Overflow or respective owner

Related posts about postgres

Related posts about createuser