> -----Original Message-----
> From: WA Brown
> Sent: Wednesday, July 12, 2006 1:27 PM
> To: Triangle Linux Users Group discussion list
> Subject: Re: [TriLUG] Server script question
>
> This is exactly how I added the command. Is this correct?
>
> 0 0 * * * mail -s 'log files' [EMAIL PROTECTED]
> /path/to/log/files
>
>
> I hope this is correct.
>
I hope its not "exactly" like that? Did you change the email address and the
file/path info? Think you would need to redirect those files too...
Also if you wanted to get a copy every time your logs rotate, with logrotate
you could use a config like:
/usr/local/apache/logs/access_log /usr/local/apache/logs/error_log {
daily
sharedscripts
postrotate
mail -s 'log files' [EMAIL PROTECTED] <
/usr/local/apache/logs/access_log.1
mail -s 'log files' [EMAIL PROTECTED] <
/usr/local/apache/logs/error_log.1
endscript
}
hope this helps,
marc
--
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/