Created
January 30, 2015 01:51
-
-
Save alexjj/5348af113c5a28738a80 to your computer and use it in GitHub Desktop.
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
PIDFILE=/home/alex/radio.pid | |
if [ -e "$PIDFILE" ] ; then | |
PID=`/bin/cat "$PIDFILE"` | |
if /bin/kill -0 "$PID" > /dev/null 2>&1 ; then | |
exit 0 | |
fi | |
fi | |
/bin/echo "$$" > $PIDFILE | |
rsync -avhzP --bwlimit=200 -e ssh "wengole:/pool/alex/radio/Today*" /data/music/_radio/ | |
/bin/rm -f "$PIDFILE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment