for x in lim res sbatchd pim pem vemkd mbatchd mbschd melim elim.hpc egosc; do ps -ef |grep -v grep |grep $x >> /dev/null && echo $x OK || echo $x DOWN; done