#!/bin/sh
#
# Copyright (c) 2017-2020
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#

for pids in $*
  do
    for process in `ps -ef | grep $pids | awk '{if($3== '$pids'|| $2=='$pids'){ print $2}}'`
      do
         kill -9 $process
      done
  done