Skip to content

Instantly share code, notes, and snippets.

@vrypan
Created February 16, 2012 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vrypan/1844843 to your computer and use it in GitHub Desktop.
Save vrypan/1844843 to your computer and use it in GitHub Desktop.
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