批量在一批机器上执行ssh命令
for host in `cat machines.txt`
do
echo "$host start exec"
ssh $host "sduo su - root -c 'pwd'"
echo "$host end exec"
done
批量在一批机器上执行ssh命令
for host in `cat machines.txt`
do
echo "$host start exec"
ssh $host "sduo su - root -c 'pwd'"
echo "$host end exec"
done