     }
 
     match_max 2000
-  }
+  } 
 
   expect timeout {
     send_user "connection timeout\n"

    send -s "\r" 
  }

  if { [regexp "signature files copy to disk failed" $result] } {

    match_max 50000000


    } eof {
      send_user "connection interrupted\n"
      continue
    } -- "--- more ---" {
      send -s " "
      set data [concat $data [split $expect_out(buffer) "\n"]]
      exp_continue
    } "*-> " {
      set data [concat $data [split $expect_out(buffer) "\n"]]
      foreach line $data {
        if { ! [ regexp {( on disk|.+->|exec vfs ls|\-\-\-|\b+)} $line ] } {  
          regexp {\s*(\S+)\s+} $line devnull filename
          send -s "exec vfs unlink flash:/kav_db/$filename\r"
         expect "*->"
        }
      }
      sleep 5
