killer also shows the process
This commit is contained in:
@@ -102,7 +102,9 @@ function run_command() {
|
||||
}
|
||||
|
||||
function ask_to_kill() {
|
||||
printf "${colRow}\nPID: $1\n k kill\n t terminate${colZ}\n"
|
||||
printf "${colRow}"
|
||||
ps -o pid,bsdstart,args "$1"
|
||||
printf "\n k kill\n t terminate${colZ}\n"
|
||||
read -t 600 input2
|
||||
[[ "$input2" = "k" ]] && kill $1
|
||||
[[ "$input2" = "t" ]] && kill -9 $1
|
||||
|
||||
Reference in New Issue
Block a user