Configure Nightly eMail of the Log File
How and where can I configure Linux to eMail the log?
|
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 |
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. |