Skip to content

Instantly share code, notes, and snippets.

@greyson
greyson / netwatch
Created February 2, 2014 16:04
Simple, powerful connection monitor
#!/usr/bin/python
DEFAULT_SOUNDFILE="/home/greyson/alerts/S_083772.mp3"
DEFAULT_HOST="209.18.47.61"
import os
import subprocess
import sys
import time
import re