I'm trying to automate some operations with the VC systems I administer, and the manufacturer has MANY inconsistencies in their interface.
I'm trying to match a system H323 name and device name, but...
If I do systemname get, the answer is name\r\n If I do h323name get, the answer from the device is name \r\n. -> the space between name and CR is killing me.
In both cases, I'm using expect "*\r\n" and then using $expect_out(0,buffer) as my variable.
Of course, later on when I try to match the names, I always get a negative, even though the names are the same.
How can I manipulate the variables or change what I'm expecting to get: 1. rid of the space bar for h323name or 2. add a space bar after systemname so my query will work?