The issue is this line:> var %org $gettok($gettok(%tmp,11,62),1,60)It needs to be 11 to 12, not 11:> var %org $gettok($gettok(%tmp,11-12,62),1,60)Also, this bit:> on :SOCKREAD:tld: {
sockread %tmpShould have been:> on :SOCKREAD:tld: {
var %tmp | sockread %tmpYou missed a local variable to temporarily store the buffer. Without that local var, the buffer from the source code gets set as a global var in your variables.