2020年8月12日

摘要: 一共两个脚本 monitor.sh #!/bin/bash log=/var/log/`date '+%Y-%m-%d'`.monitor.log while [[ ture ]]; do bash `pwd`/excute.sh >> ${log} sleep 10 done excute.sh 阅读全文
posted @ 2020-08-12 11:33 jojoword 阅读(708) 评论(0) 推荐(0) 编辑
 
摘要: disk=sda [root@localhost monitor]# echo $disk sda [root@localhost monitor]# iostat | awk 'BEGIN{disk="'"$disk"'"}{if ($1==disk) print;}' sda 0.15 0.12 阅读全文
posted @ 2020-08-12 10:01 jojoword 阅读(247) 评论(0) 推荐(0) 编辑