LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Configure Nightly eMail of the Log File (https://www.linuxquestions.org/questions/linux-newbie-8/configure-nightly-email-of-the-log-file-619104/)

OOsorio 02-06-2008 10:17 AM

Configure Nightly eMail of the Log File
 
How and where can I configure Linux to eMail the log?

mahmoud 02-06-2008 11:15 AM

crontab -e (edit cron job)
* * * * * cat /path/log.xx | mail -s subject myemail@address.com
or u can write a script and use cron job as well all depends on how many log you want emailed to you

Poetics 02-06-2008 01:03 PM

You might also want to take a look at the 'logrotate' program, which has this capability (and many others) built in.


All times are GMT -5. The time now is 05:07 PM.