Re: chron scripts and pgsql

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Dennis Gearon <gearond(at)cvc(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: chron scripts and pgsql
Date: 2003-04-07 06:01:06
Message-ID: 20030407060106.GA2911@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Apr 06, 2003 at 10:55:01PM -0700, Dennis Gearon wrote:
> I looked in postgres-general, and VERY little came up about 'chron'.
>
> Can anyone outline what it takes not NON INTERACTIVELY do a query with
> pgsql? So it can be done in a chron script?
>
> I want to check a table to see if there's any rows with 'unapproved' in
> one column and then just call mail to send someone an email to approve
> some listings.

Just use psql -c <query>
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> "the West won the world not by the superiority of its ideas or values or
> religion but rather by its superiority in applying organized violence.
> Westerners often forget this fact, non-Westerners never do."
> - Samuel P. Huntington

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-04-07 06:19:15 Re: chron scripts and pgsql
Previous Message Dennis Gearon 2003-04-07 05:55:01 chron scripts and pgsql