mirror of
https://github.com/eddyem/small_tel.git
synced 2026-03-20 16:50:59 +03:00
add some scripts
This commit is contained in:
14
Daemons/astrosib/GoTo
Executable file
14
Daemons/astrosib/GoTo
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
TTY=/dev/ttyS1
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "USAGE: $0 hh:mm:ss.s +dd:mm:ss.s"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
stty -F $TTY -hupcl -opost -onlcr -isig -iexten -echo -echoe -echok -echoctl -echoke -icanon min 0 time 5
|
||||
|
||||
echo ":Sr${1}#" > /dev/ttyS1 && cat /dev/ttyS1
|
||||
echo ":Sd${2}#" > /dev/ttyS1 && cat /dev/ttyS1
|
||||
echo ":MS#" > /dev/ttyS1 && cat /dev/ttyS1
|
||||
Reference in New Issue
Block a user