Date: Tue, 21 Sep 2010 20:21:32 -0500 (CDT) From: Robert Bonomi <bonomi@mail.r-bonomi.com> To: edflecko@gmail.com, freebsd-questions@freebsd.org Subject: Re: Software to SEND log files only? Message-ID: <201009220121.o8M1LWYH024727@mail.r-bonomi.com>
next in thread | raw e-mail | index | archive | help
> Date: Tue, 21 Sep 2010 12:56:13 -0700 > From: Ed Flecko <edflecko@gmail.com> > To: freebsd-questions@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009220121.o8M1LWYH024727>