2023年12月18日
查看Linux服务器时间
[root@xx-4 ~]# cat xcall.sh
!/bin/bash
5 循环
for host in 1 2 3 4; do
echo —————– sync xx-$host ————–
ssh xx-$host hwclock;date
done
[root@xx-4 ~]#
[root@xx-4 ~]# cat xcall.sh
for host in 1 2 3 4; do
echo —————– sync xx-$host ————–
ssh xx-$host hwclock;date
done
[root@xx-4 ~]#