The way it is posted, I would not expect anything to work. Please edit your post with newlines as required---the format should be something like this:
Code:
magic=0x1234
j=0
for i in <command string>; do
<command(s)>
done
**
Try running ethtool by itself.
You CAN have all this on one line, but it needs to have ";" whereever there would normally be a newline.
<<EDIT: Sorry for duplication--I was typing while colucix was posting>>