#!/bin/bash # Usage: # spacecruft-greenctld-cmd [command] # Example, to print position: # spacecruft-greenctld-cmd p # Example, to move position: # spacecruft-greenctld-cmd "P 90 45" set -x echo "$@" | nc localhost 4533 > /dev/null & disown exit