Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Created November 9, 2010 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IanVaughan/668981 to your computer and use it in GitHub Desktop.
Save IanVaughan/668981 to your computer and use it in GitHub Desktop.
file that wants to email you with its IP addresses (doesnt work!)
#!/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