Created
February 14, 2016 23:06
-
-
Save wprzyb/dba2951479fd24bbd9c7 to your computer and use it in GitHub Desktop.
APRS bash script (telnet, expect)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
escseq=$(echo 'e' | tr 'e' '\035') #czary mary | |
export escape=${escseq} | |
expect -c ' | |
spawn telnet krakow.aprs2.net 14580 | |
expect "# aprsc" | |
send "user ZNAK pass HASLO vers SQ9WTF BASH SCRIPT\r" # znak zmieniasz, haslo zmieniasz, vers też możesz po swojemu | |
expect "# logresp ZNAK verified, server T2KRAKOW" # ZNAK zmieniasz, T2KRAKOW zalezne od adresu 4 linijki wyzej | |
send "SQ9WTF>APZ100,WIDE1*:=5005.62N/01956.13E- vy 73 de SQ9WTF!, QTH: JO90XC, QSX: 145.550" # wiadomo co mozna pozmieniac | |
send "\r" | |
send "$env(escape)" | |
expect "telnet>" | |
send "quit\r" | |
interact | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment