That'll work. I didnt know how to do email from the shell. Is there any way to limit the size of an email? Such as when the logfile gets so big then it will email that then when it gets that big again it will email that and so on?

WA Brown


----- Original Message ----- From: "Warren Myers" <[EMAIL PROTECTED]>
To: "Triangle Linux Users Group discussion list" <[email protected]>
Sent: Wednesday, July 12, 2006 12:56 PM
Subject: Re: [TriLUG] Server script question


you can cron the job to run similar to the following:

$ crontab -e
0 0 * * * mail -s 'log files' [EMAIL PROTECTED] <
/path/to/log/files

then save your crontab

Warren

On 7/12/06, WA Brown <[EMAIL PROTECTED]> wrote:

How can I get the logs sent by email from my server to an email addy on a
regular basis?Such as the error log or access log? I dont know enough
scripting to figure it out. I use some shell scripts now.


WA Brown


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




--
http://warrenmyers.com
"God may not play dice with the universe, but something strange is going on
with the prime numbers." --Paul Erdős
"It's not possible. We are the type of people who have everything in our
favor going against us." --Ben Jarhvi, Short Circuit 2



--------------------------------------------------------------------------------


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