Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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