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" <[EMAIL PROTECTED]>
To: "'Triangle Linux Users Group discussion list'" <[email protected]>
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' [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/



--
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/

Reply via email to