Re: Monitor log file thru shell script
- From: "Radoulov, Dimitre" <cichomitiko@xxxxxxxxx>
- To: shivaswamykr@xxxxxxxxx
- Date: Tue, 08 Jul 2008 23:19:04 +0200
Shivaswamy / ಶಿವಸ್ವಾಮಿ wrote:
[...]
I am attempting to look for a pattern in the continuously growing log
file and mail me if match is found. (on Linux). But I am having problem.
[...]
You could use something like this:
err1=down
tail -f logfile |
while IFS= read -r; do
case $REPLY in
"$err1" ) mail -s "Found warning" your_email@address ;;
esac
done
Regards
Dimitre
--
http://www.freelists.org/webpage/oracle-l
- Follow-Ups:
- Re: Monitor log file thru shell script
- From: Dimitar Radoulov
- References:
- Monitor log file thru shell script
- From: Shivaswamy / ಶಿವಸ್ವಾಮಿ
Other related posts:
- » Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
- » Re: Monitor log file thru shell script
I am attempting to look for a pattern in the continuously growing log file and mail me if match is found. (on Linux). But I am having problem.
- Re: Monitor log file thru shell script
- From: Dimitar Radoulov
- Monitor log file thru shell script
- From: Shivaswamy / ಶಿವಸ್ವಾಮಿ