Running queries from scripts. - Mailing list pgsql-sql

From DalTech - Continuing Technical Education
Subject Running queries from scripts.
Date
Msg-id 011001bfe761$e57a3a60$5911be86@cte.Dal.Ca
Whole thread Raw
Responses Re: Running queries from scripts.
List pgsql-sql
I was wondering if anyone could help me out with the syntax of running queries from a unix script.
 
psql -c select 'I am a dummy' -d dbname  - never seems to work.  I've tried variations on the command line, but to no success.
 
Does the -c option work?
 
Cheers,
Christopher Currie

__________________________________
Dalhousie: DalTech - CTE
Visit our Web site at http://www.cte.dal.ca
(902) 494-6079
(800) 565-1179

pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] lztext and compression ratios...
Next
From: Margarita Barvinok
Date:
Subject: Re: Running queries from scripts.