[TriLUG] remedial bash scripting question
robdale at gmail.com
Tue May 31 20:17:54 EDT 2011
On Tue, May 31, 2011 at 8:10 PM, Chris Bullock <cgbullock at yahoo.com> wrote:
> I have a very basic bash scripting question.
> I have a log file that I am trying to parse and if the results are positive I
> want an email sent to me. Then I will put it in a cron tab to run every 15
> basically. I need this to be a bash script, no perl or awk.
> # look for the string
tail -n 1000 /var/log/messages | grep -i mismatch && mail
me at there.com -s "found the string"
More information about the TriLUG