Re: chron scripts and pgsql - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: chron scripts and pgsql
Date
Msg-id 20030407060106.GA2911@svana.org
Whole thread Raw
In response to chron scripts and pgsql  (Dennis Gearon <gearond@cvc.net>)
List 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@svana.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

Attachment

pgsql-general by date:

Previous
From: Dennis Gearon
Date:
Subject: chron scripts and pgsql
Next
From: Dennis Gearon
Date:
Subject: Re: chron scripts and pgsql