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 prevent this?
Thanks.
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 prevent this?
Thanks.