LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 05-25-2004, 12:38 PM   #1
rddreamz
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 out.how can i do that?
thanks
 
Old 05-25-2004, 12:41 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 66
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
infamous41md
Member
 
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.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 02:31 AM.

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