09-24-2020, 01:35 PM
(This post was last modified: 09-24-2020, 01:38 PM by Boxta. Edited 1 time in total.)
So, to send packets thru scripting is rather hard, because of the fact that you cant make the packet within the script because of scripts and packets using the same terminating simbol (^), so, to get around this, the way i use is make the packet before hand and save it to somewhere usually /home, then, instead of making it within the scrip, just CP /home/packetname /mnt/radio/1149, which will send the packet to the radio sending it out, while still saving the script for reuse. In this case, your script would look like
echo command=text_message|nmessage=test|nsender_name=test ^/home/PdaTest
echo #!|ncp /home/PdaTest /mnt/radio/1149 ^ /home/ScriptTest
echo command=text_message|nmessage=test|nsender_name=test ^/home/PdaTest
echo #!|ncp /home/PdaTest /mnt/radio/1149 ^ /home/ScriptTest