Re: emailing log files

From: <alowe@dont-contact.us>
Date: Wed, 14 Jun 2000 09:43:00 +1000 (EST)

make a bash script to do the email:
#!/bin/bash
mail user@domain.com < /usr/local/squid/logs/access/log

run this script from cron:

crontab -e and add the line, if you dont like the default editor, the
crontab file is in:
/var/spool/cron/crontabs/root

try that....

Andrew Lowe
andrew@pccentre.com.au
        The South Coast Professional Computing Centre
                + Hislora Website Hosting & Design
                + Daly & Daly Computer Training
                + Flatearth Internet Cafe
        Ph: 02 4423 7771
        Fax: 02 4423 7772
        email: sales@pccentre.com.au

On Tue, 13 Jun 2000, Craig Fels wrote:

> Hopefully someone can help. It worked last time, and I appreciate it!
>
> I need to send a daily email of /usr/local/squid/logs/access.log to someone.
>
> Can anyone help me? I'm new to Linux and Squid, but picking it up pretty
> quickly.
>
> I'm using Mandrake 7.0
>
> Thanks.
> Craig
>
>
>
Received on Tue Jun 13 2000 - 17:03:41 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:01 MST