d
This commit is contained in:
@@ -13,7 +13,7 @@ while read line
|
|||||||
for toolname in $toollist;do
|
for toolname in $toollist;do
|
||||||
expect <<EOF
|
expect <<EOF
|
||||||
set timeout 10
|
set timeout 10
|
||||||
spawn scp $tooldir/$toolname $user@$ip:/tmp && ssh $user@$ip sudo cp /tmp/$toolname $tooldir
|
spawn "scp $tooldir/$toolname $user@$ip:/tmp && ssh $user@$ip sudo cp /tmp/$toolname $tooldir"
|
||||||
expect {
|
expect {
|
||||||
"yes/no" { send "yes\n";exp_continue }
|
"yes/no" { send "yes\n";exp_continue }
|
||||||
"password" { send "$passwd\n" }
|
"password" { send "$passwd\n" }
|
||||||
|
|||||||
Reference in New Issue
Block a user