#!/bin/bash
user=`whoami`
for((host=102; host<=104; host++)); do
echo -e "---修改 $user@hadoop$host 时间---"
ssh $user@hadoop$host "source /etc/profile ; sudo date -s $1"
done
#!/bin/bash
user=`whoami`
for((host=102; host<=104; host++)); do
echo -e "---修改 $user@hadoop$host 时间---"
ssh $user@hadoop$host "source /etc/profile ; sudo date -s $1"
done
本文标题:黑猴子的家:change_date.sh
本文链接:https://www.haomeiwen.com/subject/yxlomltx.html
网友评论