Re: chron scripts and pgsql

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: chron scripts and pgsql
Дата
Msg-id 20030407060106.GA2911@svana.org
обсуждение исходный текст
Ответ на chron scripts and pgsql  (Dennis Gearon <gearond@cvc.net>)
Список 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

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Dennis Gearon
Дата:
Сообщение: chron scripts and pgsql
Следующее
От: Dennis Gearon
Дата:
Сообщение: Re: chron scripts and pgsql