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

你可能感兴趣的:(linux,职场,休闲)