循环脚本

mac2022-06-30  57

for h in `cat ok.txt`; do  ssh $h 'for u in `ml all`; do rsync -aP /root/init_ldap_centos.sh $u:/root/ && ssh $u "bash /root/init_ldap_centos.sh"; done'; done

转载于:https://www.cnblogs.com/tengfei520/p/6644687.html

最新回复(0)