All pastes #1340844 Raw Edit

Woot Notifier

public text v1 · immutable
#1340844 ·published 2009-02-18 07:30 UTC
rendered paste body
#!/bin/bash

previous=$(wget http://www.woot.com/Blog/Feed.ashx -O- 2> /dev/null | md5sum  | cut -b-32)

while [ 1 ]; do

    checksum=$(wget http://www.woot.com/Blog/Feed.ashx -O- 2> /dev/null | md5sum  | cut -b-32)

    if [ "x$checksum" != "x$previous" ]; then

	echo "New woot item!"

        zenity --info --text="New woot item\!"

	previous=$checksum

    fi

    sleep 30

done