Re: cron to attach a gz file
- From: Peter Boosten <peter@xxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 09:58:17 +0100
Zbigniew Szalbot wrote:
Hello,
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
Peter
--
http://www.boosten.org
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- cron to attach a gz file
- From: Zbigniew Szalbot
- cron to attach a gz file
- Prev by Date: cron to attach a gz file
- Next by Date: Re: OT: Downloading file by sending email
- Previous by thread: cron to attach a gz file
- Index(es):
Relevant Pages
|
|