Created
February 16, 2012 13:31
-
-
Save vrypan/1844843 to your computer and use it in GitHub Desktop.
use listener.py to trigger scripts when a feed is updated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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