RE: Sending Email from script
I didn't know about logcheck, I think it will do exactly what I need. However I can't get it to send email either.
Nathan
-----Original Message-----
From: Alex Samad [mailto:alex@samad.com.au]
Sent: Wednesday, July 18, 2007 1:13 AM
To: debian-user@lists.debian.org
Subject: Re: Sending Email from script
On Wed, Jul 18, 2007 at 12:34:32AM -0400, Roberto C. Sánchez wrote:
> On Tue, Jul 17, 2007 at 02:54:09PM -0400, Mace, Nathan wrote:
> > I just installed Debian Etch (4.1.1) that I'm planning on using as a
> > syslog server. I've got syslog-ng up and running just fine. And
> > I've got a script that greps the logs nightly for error messages
> > that I care about. The problem is I can't get the results of the
> > script to be emailed to me.
<script> | mail -e -s "Subject" recept@someplace.com
> >
> Why not use logcheck?
>
> Regards,
>
> -Roberto
>
> --
> Roberto C. Sánchez
> http://people.connexer.com/~roberto
> http://www.connexer.com
Reply to: