#!/bin/bash # # 2014/10/13 fix_bin=‘/usr/bin/myisamchk‘ d_db_data=‘/data/mysql_data/3306‘ dt=`date +"%y%m%d"` cd ${d_db_data} echo ‘>>===========================‘ tail `hostname`.err -n 200 |grep $dt |grep "Checking table" |awk ‘{print $NF}‘ echo ‘----------------------------------------------------‘ tail `hostname`.err -n 200 |grep $dt |grep "Checking table" |awk ‘{print $NF}‘ |xargs -i ${fix_bin} {} echo ‘<<===========================‘
时间: 2025-01-02 15:52:53