well imagine this:

sockwrite -n $sockname <about 2000 length line>

i tried to send it using multiple variables and got the same error: * String too long:

how could i use it in a loop?