Re: Scheduled function ? - Mailing list pgsql-novice

From Aarni Ruuhimäki
Subject Re: Scheduled function ?
Date
Msg-id 200605041759.42760.aarni@kymi.com
Whole thread Raw
In response to Re: Scheduled function ?  ("Daniel T. Staal" <DStaal@usa.net>)
Responses Re: Scheduled function ?
Re: Scheduled function ?
List pgsql-novice
On Thursday 04 May 2006 17:50, Daniel T. Staal wrote:
> On Thu, May 4, 2006 10:37 am, Aarni Ruuhimäki said:
> > Hi,
> >
> > What's the best / easiest way to run a function as a 'scheduled task' ?
> >
> > My current platform is FC2 / PostgreSQL 8.0.2 and the stock report
> > application is in php.
>
> Probably cron.  Write a script to call the function, then have cron call
> it at appropriate times.
>
> Daniel T. Staal
>

Hi,

Yes, I thought so. What would the syntax of such a script ?

Something like:

#!/bin/bash
#

/usr/local/pgsql/bin/psql db_name

run a function ?

#eof

Cronned for user postgres.

BR,

Aarni

pgsql-novice by date:

Previous
From: "Daniel T. Staal"
Date:
Subject: Re: Scheduled function ?
Next
From: Christoph Frick
Date:
Subject: Re: Scheduled function ?