[TriLUG] remedial bash scripting question
cgbullock at yahoo.com
Tue May 31 20:10:47 EDT 2011
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
If there are results kick out an email
More information about the TriLUG