I can't see anything wrong with it, but you're using the -t switch in /sockwrite where it's not needed.