This commit is contained in:
2023-10-19 18:21:06 +08:00
parent a142657684
commit c06f011298

View File

@@ -6,6 +6,9 @@ toollist="zip unzip"
#分发到各个节点,这里分发到nehosts文件中的主机中. #分发到各个节点,这里分发到nehosts文件中的主机中.
while read line while read line
do do
if [[ "$line" =~ ^[^[:space:]]*# ]]; then
continue
fi
user=`echo $line | cut -d " " -f 2` user=`echo $line | cut -d " " -f 2`
ip=`echo $line | cut -d " " -f 1` ip=`echo $line | cut -d " " -f 1`
passwd=`echo $line | cut -d " " -f 3` passwd=`echo $line | cut -d " " -f 3`