Advertisement
Guest User

Untitled

a guest
Apr 15th, 2015
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. PERIOD=300
  4.  
  5. while true; do
  6.     for n in $*; do
  7.         URL="http://us.twitcasting.tv/$n"
  8.         (curl -s $URL | grep -E 'on Live|Radio Live!' > /dev/null) && (echo `date` "   $URL"; beep; beep; beep)
  9.     done
  10.     sleep $PERIOD
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement