Skip to content

@ShaneQful /feedalarmer.sh
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
To help someone on r/raspberry_pi
#!/bin/bash
BEFORE=0
while true
do
wget https://news.ycombinator.com/rss -q -O test
NOW=$(wc -c test | grep -o -P "\d+")
if [ "$NOW" -ne "$BEFORE" ] ; then
mplayer Alert.ogg
fi
BEFORE=$NOW
sleep 5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.