Date: Tue, 21 Sep 2010 15:16:35 -0500 From: Adam Vande More <amvandemore@gmail.com> To: Ed Flecko <edflecko@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Software to SEND log files only? Message-ID: <AANLkTik6BQtFxXU54EO-Dk6fUiLrsFbAf8Cox1HLDZBU@mail.gmail.com> In-Reply-To: <AANLkTi=R0ve=SuOFS8H2Dz2j3vQkS_nxOn%2BYSKid6eZm@mail.gmail.com> References: <AANLkTi=R0ve=SuOFS8H2Dz2j3vQkS_nxOn%2BYSKid6eZm@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 21, 2010 at 2:56 PM, Ed Flecko <edflecko@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@example.com -- Adam Vande More
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTik6BQtFxXU54EO-Dk6fUiLrsFbAf8Cox1HLDZBU>