[rancid] Can someone tell me why the second expect isn't being executed ?

Mr. James W. Laferriere babydr at baby-dragons.com
Tue May 20 21:41:02 UTC 2008


 	Hello All ,  This one is not making sense to me ,  expect see's 
"$prompt" & and sends "show version\r" ,  But neither see's the regexp 
"^Image.stamp.*" nor (of course) follows up with the send ...
 	Any insights are helpful .  Tia ,  JimL

   send "\r"
   expect {
     "$prompt" { send "show version\r" }
     -re "^Image.stamp.*" { send "this stinks\r\n\n" }
   }


 	Given the Following output ...
VH-SW01# show version
Image stamp:    /sw/code/build/info(s02)
                 Feb 26 2007 09:30:56
                 F.05.59
                 1194
VH-SW01#

-- 
+------------------------------------------------------------------+
| James   W.   Laferriere | System    Techniques | Give me VMS     |
| Network&System Engineer | 2133    McCullam Ave |  Give me Linux  |
| babydr at baby-dragons.com | Fairbanks, AK. 99701 |   only  on  AXP |
+------------------------------------------------------------------+


More information about the Rancid-discuss mailing list