greenctld/scripts/spacecruft-greenctld-cmd

15 lines
249 B
Plaintext
Raw Permalink Normal View History

2022-10-04 19:05:59 -06:00
#!/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