Guest User

Untitled

a guest
Jul 20th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. # ~/.bashrc
  2. trap on_exit EXIT
  3.  
  4. on_exit() {
  5. mail -s "Bash: logging out at $(date)" monitor@example.com < (
  6. echo "Commands run:"
  7. history
  8. )
  9. }
Add Comment
Please, Sign In to add comment