[root@linux-214 54198]# ps -ef|grep QD|grep -v grep|awk '$10==2{print $14}'
QWorld
QDBProxy
QGameServer
QGateway
QCommunity
[root@linux-214 54198]# ps -ef|grep QD|grep -v grep|awk '$10==2{print $14}'|tr -s '\n' ' ';echo
QWorld QDBProxy QGameServer QGateway QCommunity
[root@linux-214 54198]#