Code:
at $w << /tmp/275/aa6vd/alert.p5/send $a $m
What did you mean by this line of code? What you wrote starts a
here document and you haven't closed it, thus unexpected end of file.
Also, your code will be much easier to read if you indent it properly and add a few blank lines between sections.