LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  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
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:09 PM.

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
Open Source Consulting | Domain Registration