Created
May 8, 2017 23:57
-
-
Save mattkenefick/b02140c4d4d4a3f3d716453d69752bdb to your computer and use it in GitHub Desktop.
Roku Debug Script
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
#!/bin/bash | |
# | |
# debug.sh | |
# | |
# Matt Kenefick | |
# | |
# Shortcut command to monitor remote Roku debugger by | |
# using credentials in ".build-env" | |
# | |
pushd `dirname $0` > /dev/null | |
SCRIPTPATH=`pwd -P` | |
popd > /dev/null | |
# Get environment variables | |
source $SCRIPTPATH/../tools/.build-env | |
# Override if local env exists | |
if [ -s "$SCRIPTPATH/../tools/.build-env-override" ]; then | |
source $SCRIPTPATH/../tools/.build-env-override | |
fi | |
# Check if it's alive | |
if ! ping -c 1 "$roku_ip" &>/dev/null ; then | |
echo "Roku @ $roku_ip is down. Exiting script." | |
exit | |
fi | |
telnet $roku_ip $roku_port |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment