[TriLUG] remedial bash scripting question
Chris Bullock
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
minutes.
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
tia
cgb
More information about the TriLUG
mailing list