秒密钥前提下的分发脚本:
[abu@NFS scriptc]$ cat fenfa.sh
#!/bin/bash
. /etc/init.d/functions
if [ $# -ne 2 ]
then
echo "argv is not right."
exit 1
fi
for ip in `cat iplist`
do
scp -P52113 $1 abu@$ip:$2 >/dev/null 2>&1
if [ $? -eq 0 ];then
action "$ip" /bin/true
else
action "$ip" /bin/false
fi
done
本文出自 “11002498” 博客,请务必保留此出处http://11012498.blog.51cto.com/11002498/1832971
原文地址:http://11012498.blog.51cto.com/11002498/1832971