I think this code function already set by the server.
And echo -at or -a maybe, so the syntax error appear on where the person active.
(Sorry, bad english. Cant speak well) :)
But this works fine.