fix: update
This commit is contained in:
@@ -10,8 +10,8 @@ while read line
|
||||
ip=`echo $line | cut -d " " -f 1`
|
||||
passwd=`echo $line | cut -d " " -f 3`
|
||||
|
||||
expect <<EOF
|
||||
for toolname in $toollist;do
|
||||
for toolname in $toollist;do
|
||||
expect <<EOF
|
||||
set timeout 10
|
||||
spawn scp $tooldir/$toolname $user@$ip:/tmp && ssh $user@$ip sudo cp /tmp/$toolname $tooldir
|
||||
expect {
|
||||
@@ -19,6 +19,6 @@ while read line
|
||||
"password" { send "$passwd\n" }
|
||||
}
|
||||
expect "password" { send "$passwd\n" }
|
||||
done
|
||||
EOF
|
||||
done
|
||||
done < nehosts
|
||||
|
||||
Reference in New Issue
Block a user