#!/opt/bin/bash echo Content-type: text/html echo "" /bin/cat << EOM XBMC update

EOM

USERNAME=xbmc
PASSWORD=xbmc
SERVER=192.168.1.12
PORT=80

echo "sending update request to $SERVER"

#wget --user=$USERNAME --password=$PASSWORD --delete-after --header='Content-Type: application/json' --post-data='{"jsonrpc": "2.0", "method": "VideoLibrary.Scan"}' http://$SERVER:$PORT/jsonrpc

curl -i -X POST -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "method": "VideoLibrary.Clean", "id": "1"}' http://$SERVER:$PORT/jsonrpc

/bin/cat << EOM

EOM