d
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user