Skip to content

Instantly share code, notes, and snippets.

@nojkepop
nojkepop / logoutwatcher.sh
Created July 26, 2023 21:58 — forked from bruienne/logoutwatcher.sh
logout watcher
onLogout() {
# Insert whatever script you need to run at logout
exit
}
echo "INFO - Watching ${HOME}" >> /var/log/org.my.log
trap 'onLogout' SIGINT SIGHUP SIGTERM
while true; do