Skip to content

Instantly share code, notes, and snippets.

@bensonk
Created October 23, 2012 01:53
Show Gist options
  • Save bensonk/3936211 to your computer and use it in GitHub Desktop.
Save bensonk/3936211 to your computer and use it in GitHub Desktop.
#!/usr/bin/python -u
from os import system
from sys import stdin
while True:
line = stdin.readline()
if '200 OK' in line:
system("notify-send -t 3000 -a Notifier '{}'".format(line))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment