Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- names=$*
- echo $names
- for i in $names; do
- cmd=`ps -C "$i" | tail -n +2 | awk '{print $1}'`
- if [ -n "$cmd" ]; then
- #kill $cmd
- echo $i killed
- else
- echo $i not found
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement