test mit kill

This commit is contained in:
2023-11-15 20:08:09 +01:00
parent bec2e44736
commit 9199ead91b
2 changed files with 7 additions and 5 deletions

View File

@ -30,7 +30,7 @@ export TEXTDOMAINDIR="/usr/share/locale"
VALUE=$"*_*"
for VALUE in "${lines[@]}"
do
# hier wird die Ausgabe von nmcli für die ausVALUEung in die .stop.txt gespeichert
# hier wird die Ausgabe von nmcli für die auswertung in die .stop.txt gespeichert
nmcli connection down "$VALUE" &> ${WG_WDIR}.stop.txt
if disable=$(grep -i 'deaktiviert\|deactivated' ${WG_WDIR}.stop.txt)
then
@ -41,7 +41,8 @@ export TEXTDOMAINDIR="/usr/share/locale"
--text=$"<span color='#0fad0a'><b>"$VALUE" Connection disconnected</b></span>"
fi
done
pkill yad
IFS=$'\n' lines=( $(cat ${WG_WDIR}Notify_PID.txt) )
kill $lines > /dev/null 2>&1
################################# END ##################################################################
############################################################################################################