#!/bin/bash

KEYWORD=$1
PROCESS_SHORT_NAME=$(echo ${KEYWORD}|sed 's/MissionServer/MS/;s/WorldServer/WS/;s/ZoneServer/ZS/')

for pid in $(ps -ef | egrep 'perf top|screen|create_screen_snapshot' | grep -v grep | grep ${PROCESS_SHORT_NAME} | awk -F" " '{print $2}'); do
	sudo kill -15 ${pid}
done
