Re: PSQL in a script

From: Stef <svb(at)ucs(dot)co(dot)za>
To: cbuschini(at)carax(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PSQL in a script
Date: 2005-09-15 08:50:50
Message-ID: 20050915105050.3f311b1e@svb.ucs.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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'"`

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Bradley Kieser 2005-09-15 10:18:41 Re: PSQL in a script
Previous Message sandhya 2005-09-15 08:39:56 Reg:Database Informaton