From: Dan M. <dm...@in...> - 2004-01-08 19:36:52
|
Hello list,=20 I have an app thet checks the error log once a day and emails me if theres something there. I'd like to only receive one=20 email per unique error. So I can either write the error log to a file and compare the file=20 to the current output in the script and only email myself/log it to=20 a file for review if they are different or clear the log after I=20 email my self about it. Is there a command with smartctl to clear the error log? # smartctl -l error /dev/hda [error here] # # Smartctl [command to clear error log] # Smartctl -l error /dev/hda # (IE no error) TIA Dan |