it's good to have your logonscript write out the info of what it does.
like, from where it was started and what is going wrong.

this way the trace is lot easier.
also, as addition to kixstrip, you could check on PostPrep 1.0.2
as it colorizes the syntax, missing quotes and alike are really easy to trace.
_________________________
!

download KiXnet