I see "i++" instead of "$i++". I would suggest using foreach loop in such cases, no need for a loop variable.
UPDATE: Please next time also add a description of how it is not working. You'll get much better answers that way
In reply to Re: execution of command inside for loop fails
by jethro
in thread execution of command inside for loop fails
by kaka_2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |