kapott

Sound on new RSS item

Oct 30th, 2017
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. rsstail -i 3 -u example.com/rss.xml -n 0 | while read line
  4.   do
  5.     aplay /some/sound/file.wav
  6.     echo "$line"
  7.   done
Advertisement
Add Comment
Please, Sign In to add comment