LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I need a script to run at user logout (https://www.linuxquestions.org/questions/linux-newbie-8/i-need-a-script-to-run-at-user-logout-630342/)

jr_linux 03-24-2008 06:24 PM

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.

Xian 03-24-2008 10:13 PM

Which distribution are you running?

jr_linux 03-25-2008 10:59 AM

We are running CentOS 5.1

windhair 03-25-2008 02:41 PM

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.