[TriLUG] Server script question
WA Brown
brownwa at ftc-i.net
Wed Jul 12 13:45:53 EDT 2006
LOL! Yes, I changed that to reflect what I am doing. I fixed one problem I
found and have it set for 10 minutes to check. It hasnt done anything yet.
WA Brown
----- Original Message -----
From: "Marc Wiatrowski" <wia at iglass.net>
To: "'Triangle Linux Users Group discussion list'" <trilug at trilug.org>
Sent: Wednesday, July 12, 2006 1:41 PM
Subject: RE: [TriLUG] Server script question
>> -----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' youremail at domain.extension
>> /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' youremail at domain.extension <
> /usr/local/apache/logs/access_log.1
> mail -s 'log files' youremail at domain.extension <
> /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/
>
More information about the TriLUG
mailing list