LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2008, 07:24 PM   #1
jr_linux
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Rep: Reputation: 0
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.
 
Old 03-24-2008, 11:13 PM   #2
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 32
Which distribution are you running?
 
Old 03-25-2008, 11:59 AM   #3
jr_linux
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Original Poster
Rep: Reputation: 0
We are running CentOS 5.1
 
Old 03-25-2008, 03:41 PM   #4
windhair
LQ Newbie
 
Registered: Oct 2005
Posts: 16

Rep: Reputation: 0
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.
 
  


Reply

Tags
scripts


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script run as user login or logout in Vsftpd server singhpps Linux - Software 4 11-27-2010 12:06 PM
loginscript--run script-- logout sinister1 Linux - Security 6 01-16-2008 11:44 AM
would script run after logout? mokku Linux - Newbie 3 12-03-2007 12:21 PM
Script is executed when user logout karthi26 Linux - Newbie 10 07-12-2007 08:26 AM
how do I make sure that the user that is going to run the script is a root user??? nikold01 Linux - General 3 09-10-2004 08:54 AM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration