From 161aed869473c5b88955f1bb1987e4a3e0c265b2 Mon Sep 17 00:00:00 2001 From: q Date: Mon, 21 Aug 2017 13:40:58 +0300 Subject: [PATCH] killer also shows the process --- skel/xsessionrc | 4 ++-- web/ssh-tunnelier | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/skel/xsessionrc b/skel/xsessionrc index a87e177..4307995 100755 --- a/skel/xsessionrc +++ b/skel/xsessionrc @@ -1,10 +1,10 @@ #!/bin/bash #sleep 1 -#sbl-disp 3 +# display-setup 3 # Do something if at Univ network -#if ping ad.helsinki.fi -c 2; then +#if ping a.local.computer -c 2; then # true #fi diff --git a/web/ssh-tunnelier b/web/ssh-tunnelier index c8ed987..f145530 100755 --- a/web/ssh-tunnelier +++ b/web/ssh-tunnelier @@ -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