i work in Linux and i normally execute the following command in the shell:
SomeCommand <Standard params> <params of type A> <params of type B> > Out.log
Now i want to call this in a TCL script like so:
set ParamsA "-some params of type A"
set ParamsB "-some params of type B"
set AllParams "-moreStandardParams $ParamsA $ParamsB"
exec SomeCommand $AllParams > Out.log
i am having some hard time making this work, because no matter what i try i cant seem to make all the params visible to SomeCommand. what is the correct way of doing this? i am obviously new to TCL. what is the difference between "" [] {} and are there any other ways of enclosing the params? What is the rule with the white spaces pre and post parenthesis?