#!/bin/sh PGHOME=/tmp/pgsql PGDATA=/tmp/pgsql/data PATH=${PGHOME}/bin:${PATH} export PGHOME PGDATA PATH createdb testdb psql -e testdb<