greenctld/scripts/spacecruft-greenctld-cmd

15 lines
249 B
Bash
Executable File

#!/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