postgres bash prompt error while user creation - Mailing list pgsql-general

From Pingale.amol@gmail.com
Subject postgres bash prompt error while user creation
Date
Msg-id 1193297187.956038.141910@e9g2000prf.googlegroups.com
Whole thread Raw
Responses Re: postgres bash prompt error while user creation  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Re: postgres bash prompt error while user creation  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-general
hello group
  i want to create a shell script  in that i want to create postgresql
user and database.both this task are created properly and executed
properly but after user and DB creation i am there on ( -bash-3.00$  )
and i wanna come back to [root@localhost:localdomain ~]#  and my
script is
#!/bin/bash
su -l postgres;
psql -U postgres -c "CREATE USER admin27 WITH PASSWORD 'admin27'
CREATEDB;" template1
psql -U admin27 -c "CREATE DATABASE emcc27;" template1 \q exit;
plzz help me to back to root from postgres bash prompt


pgsql-general by date:

Previous
From: "Vyacheslav Kalinin"
Date:
Subject: Re: Extracting Index Creation Script
Next
From: Andy
Date:
Subject: Re: Using Postgres as a "embedded" / SQL Lite database on Windows