LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 06-03-2003, 09:17 PM   #1
hamster
Member
 
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Rep: Reputation: 30
Question running a script automatically when Logging out?


Is there a file in Linux (RedHat or general) that is executed upon logout? ie, for cleanup or for logging purposes? I wish to do write to a file and custom logging before the user logs out.

Thanks,
James
 
Old 06-03-2003, 09:19 PM   #2
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
If you use the bash shell, i believe the file is .bash_logout in your home directory

Ian
 
Old 06-03-2003, 09:49 PM   #3
hamster
Member
 
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by green_dragon37
If you use the bash shell, i believe the file is .bash_logout in your home directory

Ian

Groan! Why did I see that? God knows how many times I have seen that file?

Thanks for that Ian!
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically running script at shutdown samac Slackware 2 05-14-2005 11:10 AM
automatically logging into XWindows ironcrouton Linux - Newbie 2 12-16-2004 07:44 AM
automatically logging in? bobbens Debian 2 11-01-2004 06:49 AM
Continue running a script after logging out? AlvinK Linux - Newbie 0 08-28-2003 07:32 AM
writing a script running firestarter automatically with kppp without root priviliges melquiades Linux - Newbie 3 08-11-2003 07:50 AM


All times are GMT -5. The time now is 02:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration