Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2001 14:20:56 +0100
From:      Rogier Steehouder <r.j.s@gmx.net>
To:        Kory Hamzeh <kory@avatar.com>
Cc:        Shashi Dookhee <dookhee.s@trafficproximity.com>, freebsd-questions@freebsd.org
Subject:   Re: How would you do this?
Message-ID:  <20011028142056.B622@localhost>
In-Reply-To: <001d01c15f4a$3397f5a0$14ce21c7@avatar.com>; from kory@avatar.com on Sat, Oct 27, 2001 at 05:48:04PM -0700
References:  <MNEAKCLKAEKLKKPGAOJBKEBGEOAA.dookhee.s@trafficproximity.com> <001d01c15f4a$3397f5a0$14ce21c7@avatar.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27-10-2001 17:48 (-0700), Kory Hamzeh wrote:
> Hi Shashi,
> 
> My concern is the second time it is run, I need to make sure that I
> don't send another e-mail because of OLD messages (which I already
> sent an e-mail for an hour ago). I looks like I need to parse the file
> and keep the timestamp of the newest log message that triggered the
> e-mail, and then only check for new messages with newer timestamps.
> That is something that I don't feel competent enough to do with a
> scripting language (i.e. convert a syslog time to a absolute number).
> 
> Kory

If you run the script hourly from cron, you only need to check items
from the last hour: no need to save the time. As to your competence in
scripting languages, well...

With kind regards, Rogier Steehouder

P.S. If you can tell me/us exactly what message you're looking for, I/we
could give you a ready-to-use example. It would be better for you to
learn perl if you might want more of this stuff in the future.

-- 
                          ___                          _
-O_\                                                  //
 | /               Rogier Steehouder                 //\
/ \                  r.j.s@gmx.net                  //  \
  <---------------------- 25m ---------------------->

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011028142056.B622>