I have an issue where expect is matching the actual remote command instead of the output. The code is:
send "show card 1 | match down\r"
expect {
"down" {write_card_fail $host}
}
The problem is expect matches the "down" from the command and not the actual output of the command. Anyway to...
Hello,
I have an Expect script that logs into a number of routers to perform backups and it works pretty well. The problem I am having is figuring what to do when the host is not responding.
Here is the snippet for the log in procedure:
proc log_in {host} {
global spawn_id
spawn telnet...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.