Re: How to call a shell command in rule

From: Clayton Cottingham <drfrog(at)smartt(dot)com>
To: "Chris Reynolds" <chris(dot)reynolds(at)marketingtips(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to call a shell command in rule
Date: 2000-10-25 16:16:21
Message-ID: 20001025231623.6342D2185@klay.imc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Wed, 25 Oct 2000 10:44:48 -0700, Jie Liang said:

> Hi,
>
> I want send a e-mail when the rows of mytable reaches 100,000, how?
>
>
>

one way is to make a function using perl
and use say mail::sender as the module to send the info

use the code snippet
in perldoc Mail::Sender

another would be to build a cron perl job that would run every so often and
check out
how many rows then send email

> --
> Jie LIANG
>
> Internet Products Inc.
>
> 10350 Science Center Drive
> Suite 100, San Diego, CA 92121
> Office:(858)320-4873
>
> jliang(at)ipinc(dot)com
> www.ipinc.com
>
>
>
>
>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Will Fitzgerald 2000-10-25 17:26:51 Surprising sequence scan when function call used
Previous Message Shane McEneaney 2000-10-25 16:03:50 How to Return number of rows updated in stored procedure