Software to SEND log files only?

Adam Vande More amvandemore at gmail.com
Tue Sep 21 20:16:36 UTC 2010


On Tue, Sep 21, 2010 at 2:56 PM, Ed Flecko <edflecko at gmail.com> wrote:

> According to the FreeBSD website
> (http://www.freebsd.org/doc/handbook/outgoing-only.html), the easiest
> way to send mail only is to install the mail/ssmtp port.
>
> Does anyone have an example of a script or other method (maybe a cron
> script?) that would e-mail my log files to me daily?
>

That's pretty silly article if you ask me, sendmail is setup to that by
default.

just add something like this to cron:

uuencode /path/to/logfile logfile | mail -s "logfile" youremail at example.com

-- 
Adam Vande More


More information about the freebsd-questions mailing list