Software to SEND log files only?
Robert Bonomi
bonomi at mail.r-bonomi.com
Wed Sep 22 01:23:30 UTC 2010
> Date: Tue, 21 Sep 2010 12:56:13 -0700
> From: Ed Flecko <edflecko at gmail.com>
> To: freebsd-questions at freebsd.org
> Subject: Software to SEND log files only?
>
> 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?
>
'mailing a file' is as simple as "mail -s {subject} {addressee} <file"
multiple files: "cat file1 file3 file2 |mail {adressee}"
the FM will provide other swiches that may be useful.
More information about the freebsd-questions
mailing list