After executing a command
if {[execCmd -cmd "xstatus call status" -expectingValue OK -waitTime 5]} {
puts "the Buffer value after executing the command is something like this>>>>>>>>>>>>>>>>>>$buffer<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"
}
i got the output as
the Buffer value after executing the command is something like this>>>>>>>>>>>>>>>>>>):
** end
xstatus call status
*s Call 161 Status: Connected
** end
OK<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Now i need the integer value to be extracted from it. How to do it ? I have tried many things but it is not working.