md5check

 #!/bin/bash

#author: Matt Song
#date:   2011/03/30
 
game=$1
file=$2
dir=/data/web
 
if [ $# != 2 ];then
echo "usgae: $0 [game] [file_name]"
 
else
 
for i in `cat /root/serverlist | grep -v "#"| awk '{print $2}'`; do
 
 
echo "============check $i's files md5==========================="
ssh $i "md5sum $dir/$game/$file"
 
done
 
fi
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章