Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-25-2004, 12:38 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 24

Rep: Reputation: 15
how can execute some commands when a user logs out

hi, i want to execute a set of commands when a user logs can i do that?
Old 05-25-2004, 12:41 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,078

Rep: Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675
Maybe with edit a .bash_logout in the user directory

[ edit ]
...but only works if the user shell is bash I don't know the procedure for other shell

Last edited by keefaz; 05-25-2004 at 12:43 PM.
Old 05-25-2004, 03:00 PM   #3
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
csh is ~/.logout , just read the man page for w/e shell u r using and search for 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
[Samba] Execute commands depending on user billiejoex Linux - Software 1 10-25-2005 12:01 PM
cannot execute some commands as an plain user! minike Slackware 5 09-03-2004 06:34 PM
how to execute my program when any user logs off my linux server ? rags2k Programming 8 08-17-2004 02:33 PM
BASH scripting; su to user, commands after dont execute Zero-0-Effect Programming 4 06-07-2004 11:09 AM
Can't execute commands when logged in as ordinary user.... murphaph Linux - General 3 04-05-2004 05:23 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:35 PM.

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