How to grep a log file for the last 5 minutes of contents every 5 minutes in Linux?
Task: Check to see if a particular error message occurs in /var/log/messages and email the contents of the error message every 5 minutes Lets first break down the task into three parts: 1. Extract contents from the log file for…