Re: PSQL in a script - Mailing list pgsql-admin

From Stef
Subject Re: PSQL in a script
Date
Msg-id 20050915105050.3f311b1e@svb.ucs.co.za
Whole thread Raw
In response to PSQL in a script  (Cédric Buschini <cbuschini@carax.com>)
List pgsql-admin
Cédric Buschini mentioned :
=> psql=`psql -h XXX.XXX.XXX.XXX. -U USER -D DATABASE -c 'SELECT COUNT(*) FROM '$3''`
=>
=> this is not perform using a call with crontab, but launching the script (./SCRIPT.SH) works...
=>
=> to check if it works, I added an echo $psql
=>
=>
=> Any ideas ???

psql=`psql -h XXX.XXX.XXX.XXX. -U USER -D DATABASE -c "SELECT COUNT(*) FROM '$3'"`

pgsql-admin by date:

Previous
From: "sandhya"
Date:
Subject: Reg:Database Informaton
Next
From: Bradley Kieser
Date:
Subject: Re: PSQL in a script