daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Dec 14th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. CNT=$#
  3. if [ $CNT = 1 ] ; then
  4.     ps -ef | grep $1 | grep -v grep | grep -v killsvr | grep -v stop | grep -v tail | awk '{ print $2 }' |\
  5.     while read PID
  6.         do
  7.         echo kill -9 $PID
  8.         kill -9 $PID
  9.     done
  10. else
  11.         echo "[Usage] : kill.sh {process_name}"
  12. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top