[TriLUG] Server script question

WA Brown brownwa at ftc-i.net
Wed Jul 12 13:27:28 EDT 2006


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.

WA Brown



----- Original Message ----- 
From: "Warren Myers" <volcimaster at gmail.com>
To: "Triangle Linux Users Group discussion list" <trilug at trilug.org>
Sent: Wednesday, July 12, 2006 1:05 PM
Subject: Re: [TriLUG] Server script question


>I don't recall how to setup logrotate, but you if logrotate is running, you
> just send the current logfile, while to older ones get archived for you.
>
> Warren
>
> On 7/12/06, WA Brown <brownwa at ftc-i.net> wrote:
>>
>> 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" <volcimaster at gmail.com>
>> To: "Triangle Linux Users Group discussion list" <trilug at trilug.org>
>> 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' youremail at domain.extension <
>> > /path/to/log/files
>> >
>> > then save your crontab
>> >
>> > Warren
>> >
>> > On 7/12/06, WA Brown <brownwa at ftc-i.net> 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/
>>
>
>
>
> -- 
> 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/ 





More information about the TriLUG mailing list