SHARE
TWEET

Expect Script Error

a guest Oct 17th, 2011 79 Never
  1. `191 login: invalid command name "
  2.   "login:"
  3.   {
  4.         send "$user\r"
  5.         expect "Password:"
  6.         send "$password\r";
  7.         interact
  8.  
  9.   }
  10.  
  11.   "host: Connection refused"
  12.   {
  13.     send_user "ERROR:EXITING!"
  14.     exit
  15.   }
  16.  
  17. "
  18.     while executing
  19. "{
  20.   "login:"
  21.   {
  22.         send "$user\r"
  23.         expect "Password:"
  24.         send "$password\r";
  25.         interact
  26.  
  27.   }
  28.  
  29.  
RAW Paste Data
Top