Date: Fri, 01 Feb 2008 08:48:02 +0100 From: Peter Boosten <peter@boosten.org> To: perryh@pluto.rain.com Cc: zszalbot@gmail.com, freebsd-questions@freebsd.org Subject: Re: cron to attach a gz file Message-ID: <47A2CEB2.2000705@boosten.org> In-Reply-To: <47a2c295.zZbt1U/oWvbDh508%perryh@pluto.rain.com> References: <94136a2c0801310049k22d7a890kac8a2482ac49333c@mail.gmail.com> <47A18DA9.50207@boosten.org> <47a2c295.zZbt1U/oWvbDh508%perryh@pluto.rain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
perryh@pluto.rain.com wrote: >>> I know I can use >>> >>> mail -s "logfile " < /var/log/httpd_access.log >>> >>> in cron to email the content of a log file to a particular email >>> address but how do I make that log file a binary attachment (*.gz)? >> gzip -c /var/log/httpd_access.log | uuencode httpd_access.log.gz | mail >> -s "logfile" someone@somewhere > > If you want an actual MIME attachment, see /usr/ports/mail/nail From a modern mail reader point of view there is not much difference between a MIME or a uuencoded attachment. Peter -- http://www.boosten.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47A2CEB2.2000705>