Hi Vinicius, I won't tell you how, but I will tell you where to look for information. Check out the man pages for 'bash' and 'mail'. bash does have a .bash_logout script, described in the bash man-page. I've given you a hint. Good luck! -David Chipman