So I am planning/designing an app running on Mac that will send commands and make data requests to a linux server. Some of the things I would need to do will be send file manipulation commands, zip files, send commands to a screen, and retrieve the output of a screen. Basically, it will be for administering a Minecraft server.
My question is, is there an endpoint or service in Linux I can use to trigger shell scripts to do this? How can I read a stream from the screen? If none of this exists, what language is best? What protocol? I'm most familiar with HTTP but that might not be ideal here.