From: Andrew C. <an...@xt...> - 2003-10-08 04:18:23
|
Hi, What about if you want the last object to be a separate expect instance? I have a situation where I need to: telnet to a cisco router and configure an interface to provide connectivity to another device. telnet from the router to the device and login. interact. logout from the device and fallback to the cisco, deconfigure the interface and shut it down. logoff. My problem is the moron users who won't read the initial text that tells them to hit control X to exit (interact escape sequence). Most of them are logging out cleanly from the device and if this was a separate expect object, control would return to the program and I could clean up the router. The man page says the escape sequence will not work with multiple characters so I can't use "exit" etc. Can I expect from an instance while it's in interact mode? I could look for the logout command or watch for when the prompt changes back to the original router. Any ideas would be hugely appreciated. Cheers, Andrew On Sat, 2003-10-04 at 08:54, Hailey Nguyen wrote: > Hi D. Basham, > > It's definitely very helpful. Chris Muth has sent me an example and I got > my stuff to work with that. But your info is also a great help to me. > > Thanks, > HAiley Theory is what you use to describe an experience. It will never be a substitute. -- Me. Everyday. |