wok view lxdm/stuff/PostLogout @ rev 19754

bash: without installed readline
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 18 23:01:05 2017 +0100 (2017-02-18)
parents
children
line source
1 #!/bin/sh
2 #
4 # LXDM does not clear the last user's processes.
5 ps -o "user,pid" | fgrep $USER | while read user pid
6 do
7 kill $pid
8 done