There is a syntax error with this:
a=(`ps -ef | grep 19999 | grep -v grep`)
It should simply be:
a=`ps -ef | grep 19999 | grep -v grep`
There's no need for parentheses there, although there is an alternate syntax to accomplish the same thing:
a=$(ps -ef | grep 19999 | grep -v grep)
Note the addition of the $
and that the backticks are no longer necessary.