Date: Sat, 27 Oct 2001 17:21:35 -0700 From: "Kory Hamzeh" <kory@avatar.com> To: <freebsd-questions@freebsd.org> Subject: How would you do this? Message-ID: <001a01c15f46$809ce580$14ce21c7@avatar.com>
next in thread | raw e-mail | index | archive | help
I need to write a script (preferably bourne shell) to send an mail every time a certain message gets sysloged, but not to send e-mail more than once an hour. I can grep /var/log/messages for the message, but I could not come up with a simple, clever way of making sure I don't send the e-mail out more than once an hour and the next time I grep, that I check for only new items logged since the last check. Any pointers would be great! -- Kory Hamzeh ICQ # 133630494 http://www.avatar.com/ http://www.metaphysical-store.com/ 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?001a01c15f46$809ce580$14ce21c7>