[wplug] Running commands on logout

Bob Schmertz rschmertz at speakeasy.net
Tue Jul 1 02:18:33 EDT 2003


Jason Dunn incurred the wrath of Bob on Jun 30, by saying

>HI all,
>
>I'm looking for a way to run clean-up commands as users log out of my systems, 
>but I don't want to add anything to their individual shell logout files.  I 
>haven't had much luck in finding (if there are any) global files that run 
>when a user logs out that I could add a command to.  I'm using RH8, if that 
>helps any.

Well, from my reading of info page, there doesn't appear to be a global
logout file for bash.  There is for csh/tcsh: /etc/csh.logout.  Zsh also
has /etc/zlogout.  Have your users switch to one of those :)

-- 
Cheers,
Bob Schmertz




More information about the wplug mailing list