Re: Database connectivity using a unix shell - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Database connectivity using a unix shell
Date
Msg-id 1151599249.13129.18.camel@state.g2switchworks.com
Whole thread Raw
In response to Re: Database connectivity using a unix shell  ("Jasbinder Bali" <jsbali@gmail.com>)
Responses Re: Database connectivity using a unix shell  (elein <elein@varlena.com>)
List pgsql-general
On Thu, 2006-06-29 at 11:29, Jasbinder Bali wrote:
> isn't my normal bash script different from psql.
> In a bash script how wud u specify the db parameters

Look at how I'm doing it here:

>         > > query="select * from sometable";
>         > > a=`echo $query|psql -tq dbname`;

Note that I'm calling psql from within a bash script. So, the connection
params are the same as for psql, cause that's what I'm using.

pgsql-general by date:

Previous
From: "Jasbinder Bali"
Date:
Subject: Re: Database connectivity using a unix shell
Next
From: Alan Hodgson
Date:
Subject: Re: Database connectivity using a unix shell