Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Created November 9, 2010 11:24
Show Gist options
  • Select an option

  • Save IanVaughan/668981 to your computer and use it in GitHub Desktop.

Select an option

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