pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stef <svb@ucs.co.za>
To: cbuschini@carax.com
Cc: pgsql-admin@postgresql.org
Subject: Re: PSQL in a script
Date: Thu, 15 Sep 2005 10:50:50 +0200
Message-ID: <20050915105050.3f311b1e@svb.ucs.co.za> (raw)
In-Reply-To: <43292DAB.8090601@carax.com>
References: <43292DAB.8090601@carax.com>

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'"`



view thread (3+ messages)  latest in thread

Message-ID: <20050915105050.3f311b1e@svb.ucs.co.za>
Permalink:  ../20050915105050.3f311b1e@svb.ucs.co.za/
Also on:    postgresql.org/message-id/20050915105050.3f311b1e@svb.ucs.co.za

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: svb@ucs.co.za, cbuschini@carax.com
  Subject: Re: PSQL in a script
  In-Reply-To: <20050915105050.3f311b1e@svb.ucs.co.za>
  References: <43292DAB.8090601@carax.com> <20050915105050.3f311b1e@svb.ucs.co.za>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox