Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Copyright (c) 2012 andy [andy@chatters.gr]
- if ps x|grep mplayer|grep -v grep; then
- radiopid=`ps x|grep mplayer|awk 'ORS="\n" {print $1}'`
- echo -e "Stopping Chatters Radio .." &&
- libnotify-notify-send "Stopping Sfera 92.9 .." &&
- kill -9 $radiopid &&
- exit 0
- else
- screen -A -d -m -S radio /usr/bin/mplayer http://artemis.chatters.gr:8000 &&
- echo -e "Connecting to Chatters Radio .." &&
- libnotify-notify-send "Connecting to Chatters Radio .." &&
- exit 0
- fi
- #end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement