15 lines
249 B
Plaintext
15 lines
249 B
Plaintext
|
#!/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
|
||
|
|