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

View File

@@ -19,6 +19,11 @@ while read line
"password" { send "$passwd\n" }
}
expect "password" { send "$passwd\n" }
EOF
done
for toolname in $toollist;do
expect <<EOF
set timeout 10
spawn ssh $user@$ip sudo mv /tmp/$toolname $tooldir
expect {
"yes/no" { send "yes\n";exp_continue }
@@ -26,5 +31,5 @@ while read line
}
expect "password" { send "$passwd\n" }
EOF
done
done
done < nehosts