I need a script to run at user logout
I need to have a script run when a user logs out. I am trying to have some lock files delete from a common directory when the user logs out.
The users are using tcsh and we are running X11
I tried using a .logout script from a user home directory, but it would not run. I tried csh.logout in /etc, but still no luck.
I tried also running something from the /etc/gdm/PostSession/Default file.
Nothing seems to run. They are not returning any errors. They are just not running. We are using Gnome Desktop.
Any help would be appreciated. Thanks in advance.