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

7
wire_g
View File

@ -60,10 +60,11 @@ wg_notify(){
--text=$"$ACTIVE activ" \
--menu="Wire-G $OPEN!/sbin/wire_g
|$ACTIVE stop!/sbin/wg_stop" \
--command="menu"
--command="menu" &
# Schreib die pid von Notify in
ps aux | grep yad | grep -v grep | awk '{print $2}' > ${WG_WDIR}Notify_PID.txt
}
pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}')
echo $pid > ${WG_WDIR}Notify_PID.txt
}
export -f wg_notify
# function end