[CentOS] run script on logout

Dave Cross davorg at gmail.com
Fri Nov 13 13:30:01 UTC 2009

2009/11/13 Janez Kosmrlj <postnalista at googlemail.com>:
> Does anyone have an idea how to run a script when the user logs out.
> I tried puting the command in the .bash_logout file, but it doesnt work.

Of course, that's only going to work if the user is using bash as
their shell. But, given that proviso, that's the right way to do it.

Is anything in .bash_logout being called?


More information about the CentOS mailing list