run a script at logout ?
John L Fjellstad
john-ubuntu at fjellstad.org
Wed May 10 19:23:16 UTC 2006
Tez <binary_y2k2 at blueyonder.co.uk> writes:
> I know how to set commands to run when a user logs in, .bashrc,
> /etc/bash.bashrc, ... but I wanted to know if there is a way to run a
> script at user logout?
According the man bash(1):
/bin/bash
The bash executable
/etc/profile
The systemwide initialization file, executed for login shells
/etc/bash.bashrc
The systemwide per-interactive-shell startup file
/etc/bash.logout
The systemwide login shell cleanup file, executed when a login
shell exits
~/.bash_profile
The personal initialization file, executed for login shells
~/.bashrc
The individual per-interactive-shell startup file
~/.bash_logout
The individual login shell cleanup file, executed when a login
shell exits
~/.inputrc
Individual readline initialization file
So, I guess /etc/bash.logout or ~/.bash_logout
--
John L. Fjellstad
web: http://www.fjellstad.org/ Quis custodiet ipsos custodes
More information about the kubuntu-users
mailing list