Created
July 15, 2019 09:07
-
-
Save rosterloh/3e7b64116b55c6b852827568fe5982bd to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
if [ -z "$SCOPE_IP" ]; then | |
echo "Need to set SCOPE_IP" | |
exit 1 | |
fi | |
if [ -z "$1" ]; then | |
echo "Need to pass filename (without extension) as argument" | |
exit 1 | |
fi | |
echo ":DISPLAY:DATA? ON,OFF,PNG" | nc -w1 $SCOPE_IP 5555 | dd bs=1 skip=11 of=$1.png | |
open $1.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment