Skip to content

Instantly share code, notes, and snippets.

@vrypan
Created Feb 16, 2012
Embed
What would you like to do?
use listener.py to trigger scripts when a feed is updated
python listener.py | while read tag feed ; do
echo ">>>" $feed "updated!"
if [[ "$feed" == "http://picks.vrypan.net/rss" ]]; then
... do something here, like reading the new feed items, and post them to a different service.
...
fi
echo "<<<"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment