After doing the exec
there's not much you can do. Without that, you could save the background PIDs twice and kill them later when dwm terminates.
ivman & IVMAN_PID=$! ... /home/nahum/bin/dwm > .dwm.log kill $IVMAN_PID
Я использую dwm в окне opensuse, где у меня нет прав root. Я запускаю dwm, используя «пользовательский сеанс» из KDM, который выполняет мой .xsession
.
$ cat .xsession exec ~/bin/startdwm cat ~/bin/startdwm #!/bin/bash xscreensaver -nosplash & ivman & while true do xsetroot -name "$(date +"%H:%M:%S|%d-%m")" sleep 1 done & exec /home/nahum/bin/dwm > .dwm.log
У меня проблема в следующем: я выхожу из этого сеанса с помощью WIN + SHIFT + Q, у меня всегда остался процесс над ivman и sleep. Как мне их убить?
Спасибо Оз
After doing the exec
there's not much you can do. Without that, you could save the background PIDs twice and kill them later when dwm terminates.
ivman & IVMAN_PID=$! ... /home/nahum/bin/dwm > .dwm.log kill $IVMAN_PID