Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Expect Script Error

By: a guest on Oct 17th, 2011  |  syntax: None  |  size: 0.39 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.