I think I understand how to execute a bash script on the same server
exec('./myshell.sh');
Completely new to this kind of thing so excuse me if this is completely wrong. But I’m wondering how I would execute a bash script on a different server? Reason is I want the bash script to execute some stuff on my dedicated Minecraft server but our website is hosted on another.
Thanks for any help in advance.
Do you absolutely need to trigger events on your minecraft server on demand, instead of checking against your webserver on a regular basis? It may be worth it to use a cronjob on the minecraft server and have it poll the webserver via wget for whether or not it should execute that bash script.
This keeps your webserver and minecraft server isolated, and keeps you from having to install additional services like a webserver (which will eat up a bunch of resources that you NEED for the minecraft dedicated server program) or writing your own micro socket-server to listen for a request to run the script.