Created
November 9, 2010 11:24
-
-
Save IanVaughan/668981 to your computer and use it in GitHub Desktop.
file that wants to email you with its IP addresses (doesnt work!)
This file contains 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 | |
SEND=mail.txt | |
echo "Date: " > $SEND | |
echo "Subject: $S2SYSTEM is now at" >> $SEND | |
echo "From: ECM" >> $SEND | |
echo "" >> $SEND | |
ifconfig eth0 | grep "inet addr" >> $SEND |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment