Skip to content

Instantly share code, notes, and snippets.

@rosterloh
Created July 15, 2019 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rosterloh/3e7b64116b55c6b852827568fe5982bd to your computer and use it in GitHub Desktop.
Save rosterloh/3e7b64116b55c6b852827568fe5982bd to your computer and use it in GitHub Desktop.
#!/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