pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Clayton Cottingham <drfrog@smartt.com>
To: Chris Reynolds <chris.reynolds@marketingtips.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to call a shell command in rule
Date: 25 Oct 2000 16:16:21 PDT
Message-ID: <20001025231623.6342D2185@klay.imc> (raw)
In-Reply-To: <39F71C10.FCA59A38@ipinc.com>
References: <20001024132108.A2092@s2.enthdimension.com.au>
	<39F71C10.FCA59A38@ipinc.com>


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@ipinc.com
>  www.ipinc.com
>  
>  
>  
>  
>  




view thread (3+ messages)  latest in thread

Message-ID: <20001025231623.6342D2185@klay.imc>
Permalink:  ../20001025231623.6342D2185@klay.imc/
Also on:    postgresql.org/message-id/20001025231623.6342D2185@klay.imc

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: drfrog@smartt.com, chris.reynolds@marketingtips.com
  Subject: Re: How to call a shell command in rule
  In-Reply-To: <20001025231623.6342D2185@klay.imc>
  References: <20001024132108.A2092@s2.enthdimension.com.au> <39F71C10.FCA59A38@ipinc.com> <20001025231623.6342D2185@klay.imc>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox