指定命令群用
2019-02-22 本文已影响0人
白纸糊
for i in hadoop101 hadoop102 hadoop103
do
echo --------- $i ----------
ssh $i "source /etc/profile && $*"
done
for i in hadoop101 hadoop102 hadoop103
do
echo --------- $i ----------
ssh $i "source /etc/profile && $*"
done