Skip to content

Instantly share code, notes, and snippets.

View slayton's full-sized avatar

Stuart Layton slayton

  • Peterborough NH
View GitHub Profile
@slayton
slayton / check_ip.py
Created October 18, 2012 16:33 — forked from t0mab/check_ip.py
RaspberryPi IP address emailer
#!/usr/bin/python
from subprocess import Popen, PIPE
import smtplib
from socket import gaierror
import string
# This script attepts to retrieve the IP address of a specified interface.
# If successful it then emails the retrieved IP to a specified email address
# FILL OUT THE VALUES BETWEEN THE COMMENT BLOCKS