LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-07-2006, 10:44 PM   #1
juniox
Member
 
Registered: Apr 2003
Posts: 34

Rep: Reputation: 15
Change the logout file.


hello everybody.
does anybody know how change the file which run when the user log out?

the currently file is: "~/.bash_logout" but i want change to another.

I have looked the environment variables and i've found the "HISTFILE=~/.bash_history", so, i imagine that there is something to specify the logout file.

does anybody know?
 
Old 09-08-2006, 03:08 AM   #2
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
try this:
man bash
 
Old 09-08-2006, 08:00 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
Code:
$ strings /bin/bash |grep bash_logout
bash_logout
~/.bash_logout
/etc/bash.bash_logout
Looks hard-coded to me, so your only option is to re-build bash. The only reason I could think of for wanting to change it is for making mischief. Why do you want to do it?
 
Old 09-08-2006, 02:24 PM   #4
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
I always put mine in ~/.bash_logout or login and it works fine. I think it is the last file read as far as configs go. You may can edit /etc/profile but it should work with the other.

 
  


Reply

Tags
bash, logout


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
kde: i want to access the logout source code and change it. Doomhammer Linux - Software 1 10-18-2004 01:13 PM
Continue executing file after you logout digitalgravy Linux - Newbie 5 10-06-2004 08:28 PM
.bash_logout file is not runing on logout Mordeth_0 Linux - Newbie 9 08-19-2004 06:11 PM
change Gnome logout to show more options jaa1180 Libranet 0 06-14-2004 08:22 AM
RedHat 7.3 / How to change resolution & how to logout and into a terminal fleshwound Linux - Software 1 07-09-2003 07:22 AM


All times are GMT -5. The time now is 03:40 PM.

Main Menu
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