This is a very basic question.
I think of TCL as a command line generator. Its purpose is to generate strings for the tool’s command line interpreter. For example, the tcl commands:
set alpha “run”
$alpha
$alpha
$alpha
cause the “run” command to be sent to the tool three times – which makes sense. But:
set alpha “run”
for {set i 0} {$i<3} {incr i} $alpha
does not. So the question is: How do I send commands to the tool from inside a loop?
for {set i 0} {$i<3} {incr i} {$alpha}to avoid possible issues with quoting. I hope that's not going to fix it for real for you, but maybe…