I’m having trouble with the telnet switch. The following works when ran against my RadioRa2 main repeater just fine: { echo lutron; sleep 1; echo integration; sleep 1; echo "#DEVICE,107,6,3"; sleep 1;} | telnet 192.168.1.10 23
But, I cannot figure out how to pass multiple commands to the telnet switch to handle the authentication. Any ideas?
Ok copied the new SH file into my config folder; made the changes to suit the server.
I have tried running it direct from SSH console and I get the following;
core-ssh:/bin# /bin/bash /config/opt/scripts/telnet-wrapper.sh 'ss 08,03'
/config/opt/scripts/telnet-wrapper.sh: line 2: $'\r': command not found
/config/opt/scripts/telnet-wrapper.sh: line 10: $'\r': command not found
/config/opt/scripts/telnet-wrapper.sh: line 17: $'\r': command not found
/config/opt/scripts/telnet-wrapper.sh: line 59: syntax error: unexpected end of file
core-ssh:/bin#
Am I mistaken in assuming that I should be able to run this from the command line successfully before I even go and look at building it into my HA setup ?