From fb866e00117a5db5b07b8c0643f0b2c932a53c43 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Sat, 12 Aug 2017 16:37:01 +0300 Subject: [PATCH] add terminate option --- web/ssh-tunnelier | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/ssh-tunnelier b/web/ssh-tunnelier index 3a86766..7ba727a 100755 --- a/web/ssh-tunnelier +++ b/web/ssh-tunnelier @@ -113,9 +113,10 @@ while true; do this_pid="$( get_pid "${ids[$j]}" )" [[ -n "$this_pid" ]] && { # PID exists, ask to kill - printf "\n ${colRow}k kill?${colZ}\n" + printf "\n ${colRow}k kill?\n t terminate?${colZ}\n" read -t 600 input2 [[ "$input2" = "k" ]] && kill $( get_pid "${ids[$j]}" ) + [[ "$input2" = "t" ]] && kill -9 $( get_pid "${ids[$j]}" ) } [[ -z "$this_pid" ]] && { # PID empty, run