#!/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
转载于:https://blog.51cto.com/mattsong/530896