#/bin/bash

MODULES=(
    "canMsg"
    "dpc_decision"
    "dpc_sm"
    "mpc_drv_ctap_rm"
    "SlamExe"
    "dpc_trpclat"
    "dpc_trpclong"
    "dpc_ved"
)

for m in ${MODULES[@]}
do
    ps -efww|grep -w ${m}|grep -v grep|cut -c 9-15|xargs -r kill -9
done