...the command, grabbing the output:
log_file C:\\smrfiles\\logs\\pmCCBs\_$ii
expect ">" { send "pmCCBs\r" }
expect "tcId*value" { send_user "$expect_out(0,string)" }
set x "$expect_out(0,string)"
The script can run many iterations, so $ii just...