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