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. |
Which distribution are you running?
|
We are running CentOS 5.1
|
what I have done is adding the script in the .cshrc which will execute it when you start cshell, but this works every time you create a cshell. I also want to know what to do for a logout.
|
All times are GMT -5. The time now is 02:55 AM. |