秒密鑰前提下的分發腳本:[abu@NFS scriptc]$ cat fenfa.sh #!/bin/bash. /etc/init.d/functionsif [ $# -ne 2 ]thenecho "argv is not right."exit 1fi for ip in `cat iplist`doscp -P52113 $1 abu@$ip:$2 >/dev/null 2>&1if [ $? -eq 0 ];then action "$ip" /bin/trueelseaction "$ip" /bin/falsefidone
本文出自 “11002498” 博客,請務必保留此出處http://11012498.blog.51cto.com/11002498/1832971