for the Socket API (Embedded APIs), does anyone have suggestions for how to encapsulate the commands used in the examples into a shell script? in other words, if im not able to manually enter them, and want a script to periodically execcute, how to?
I see you are already using NetCat manually which can be put into a shell script so I assume your question is about scheduling the shell script to execute, correct? If so I would recommend setting up a CRON job. You can read more about CRON here: Newbie: Intro to cron
Some older versions of netcat (like the one that ships in OS X) will hang up before getting a reply, which causes Hologram to ignore the message. You can work around this by telling netcat to delay for 1 second before hanging up: