pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Bradley Kieser <brad@kieser.net>
To: cbuschini@carax.com
Cc: pgsql-admin@postgresql.org
Subject: Re: PSQL in a script
Date: Thu, 15 Sep 2005 11:18:41 +0100
Message-ID: <43294A81.8080006@kieser.net> (raw)
In-Reply-To: <43292DAB.8090601@carax.com>
References: <43292DAB.8090601@carax.com>
Cron needs full paths as no environment is inherited in the cron
environment.
Brad
Cédric Buschini wrote:
> Hi
>
> Here is my "problem"
> I have a script where I got this line below :
>
> 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 ???
> --
>
> */ Cédric BUSCHINI
> Phone : + 33 (0) 1 70 916 760 / *
>
> *Service Informatique*
>
> = Carax =
>
> * 11 bis rue D'aguesseau
> 75008 PARIS
> FRANCE*
> "This message, including any attachments may contain confidential and
> privileged material; it is intended only for the person to whom it is
> addressed. Its contents do not constitute a commitment by CARAX except
> where provided for in a written agreement. CARAX assumes no liability
> or responsibility for the consequences arising out of a delay and/or
> loss in transit of this message, or for corruption or other error(s)
> arising in its transmission and for any misuse or fraudulent use which
> may be made thereof. If you are not the intended recipient, please
> contact us and abstain from any disclosure, use or dissemination. To
> the extent that this message contains research information and/or
> recommendations, these are provided on the same basis as CARAX's
> published research and the recipient must have regard to all
> disclosures and disclaimers contained therein."
>
view thread (3+ messages)
Message-ID: <43294A81.8080006@kieser.net> Permalink: ../43294A81.8080006@kieser.net/ Also on: postgresql.org/message-id/43294A81.8080006@kieser.net ·
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: brad@kieser.net, cbuschini@carax.com Subject: Re: PSQL in a script In-Reply-To: <43294A81.8080006@kieser.net> References: <43292DAB.8090601@carax.com> <43294A81.8080006@kieser.net> * 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