kill test 3

This commit is contained in:
Désiré Werner Menrath 2023-11-15 20:22:37 +01:00
parent 9199ead91b
commit 8fb339d016
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ export TEXTDOMAINDIR="/usr/share/locale"
fi fi
done done
IFS=$'\n' lines=( $(cat ${WG_WDIR}Notify_PID.txt) ) IFS=$'\n' lines=( $(cat ${WG_WDIR}Notify_PID.txt) )
kill $lines > /dev/null 2>&1 kill $lines #> /dev/null 2>&1
################################# END ################################################################## ################################# END ##################################################################
############################################################################################################ ############################################################################################################

2
wire_g
View File

@ -65,7 +65,7 @@ wg_notify(){
pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}') pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
echo $pid > ${WG_WDIR}Notify_PID.txt echo $pid > ${WG_WDIR}Notify_PID.txt
} }
export -f wg_notify
# function end # function end
############################################################################################################ ############################################################################################################