Skip to content

Instantly share code, notes, and snippets.

@interstateone
Created December 20, 2012 17:41
Show Gist options
  • Save interstateone/4347115 to your computer and use it in GitHub Desktop.
Save interstateone/4347115 to your computer and use it in GitHub Desktop.
Restart XBMC.app on network
# 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