Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #!/bin/bash
  2. # Copyright (c) 2012 andy [andy@chatters.gr]
  3. if ps x|grep mplayer|grep -v grep; then
  4. radiopid=`ps x|grep mplayer|awk 'ORS="\n" {print $1}'`
  5. echo -e "Stopping Chatters Radio .." &&
  6. libnotify-notify-send "Stopping Sfera 92.9 .." &&
  7. kill -9 $radiopid &&
  8. exit 0
  9. else
  10. screen -A -d -m -S radio /usr/bin/mplayer http://artemis.chatters.gr:8000 &&
  11. echo -e "Connecting to Chatters Radio .." &&
  12. libnotify-notify-send "Connecting to Chatters Radio .." &&
  13. exit 0
  14. fi
  15. #end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement