Created
December 20, 2012 17:41
-
-
Save interstateone/4347115 to your computer and use it in GitHub Desktop.
Restart XBMC.app on network
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
# Copy to remote home folder and run with `ssh atv 'bash ~/restart-xbmc.sh'` | |
JOB=`ps A | grep '/XBMC$' | awk '{print $1}'` | |
if [ "$JOB" ]; then | |
kill -9 $JOB | |
fi | |
/Applications/XBMC.app/Contents/MacOS/XBMC &> /dev/null | |
disown %1 | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment