device forTCP Commands or Terminal sessions

Sebastian Mill's icon

Hey Community!
Did anybody develop a device using M4L to control external hardware devices using TCP commands?
What i found is the Jeremy Bernstein Shell object, and maybe it is the key to create such a device.

I'm searching for a solution to control - let's say 10 - external devices and tell them to change for example inputs or mute outputs, if supported by the external device.
I'd like to run this device in osx and, as a backup solution, in win. So, OSAscript seems to be no option at all.

At the moment i use applescript to call terminal and make scripted key inputs.
In Win i use batchfiles, but that is not a good solution at all - so my question is, if anyone in this community already developed such a device für Ableton, or is interested in developing right now.

example commands i actually use in Terminal are:
do script "telnet 192.168.12.113 2202"
    delay 1
    do script "< SET 22 SLOT_OUTPUT 44 ON >" in front window
    delay 0.1
    do script "< SET 22 SLOT_RF_OUTPUT 45 OFF >" in front window
    delay 0.1
    do script "< SET 22 SLOT_RF_OUTPUT 46 OFF >" in front window
    delay 0.1
    do script "< SET 22 SLOT_RF_OUTPUT 47 OFF >" in front window
    delay 0
    quit

best regards
Sebastian