Last active
January 19, 2016 03:15
-
-
Save sepehr/b7524d2556348f9c1749 to your computer and use it in GitHub Desktop.
Shell: History via mail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tail -n 100 ~/.bash_history | mail -v -s "Shell history log of '$HOSTNAME'" [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment