The right syntax for xterm is
xterm -e programname argument1 argument2 argument3 ...
no problem to pass "0" to the "programname"
your line 10 should look like:
xterm -e "$DIR/src/processors/executive/executive" "0" &
Try to find a way to run your "server" tasks independent from a terminalsession. Monitoring via logfiles is easy ( like less +F logfilename ) and it makes everything rock solid.