> Date: Tue, 21 Sep 2010 12:56:13 -0700
> From: Ed Flecko <[email protected]>
> To: [email protected]
> 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.

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to