How to mail the name of the user that logged off?

Brian Mury brianmury at alumni.uvic.ca
Sun Sep 23 03:04:23 UTC 2007


On Sat, 2007-09-22 at 15:53 -0600, Frank Cox wrote:
> On Sat, 22 Sep 2007 21:47:38 +0000 (UTC) Vinicius <cviniciusm at uol.com.br> wrote:
> > How to mail the username of the user that logged off, please?
> 
> Use the mail command and put it in the ~/.bash_logout script.

That only works for users who use bash as their default shell.





More information about the users mailing list