linx win,
With this thread being two months old, you probably have already determined the answer to your question. I am also attempting to learn how to use Kommander and had a similar problem.
Your example code was correct except in one place, the using of the "i" variable in the second line. It needs an "@" in front of it. So the complete example would look like this:
Code:
@for(i, 0, @name_list.count, 1)
@File.append(/home/knoppix/names, @name_list.item(@i))
@end
The "@i" variable exists only within the "for loop".
From my understanding on how the Kommander parser works, it is best to not mix lines with Kommander script and bash script. The reason for this is, the Kommander script portions is parsed/executed first and then is followed by the bash script portions being processed and executed.