I’ve been tasked with setting up an automated system that will have to do some things on the Linux server that, from my understanding and research thus far are not able to easily be done from within Java, such as mounting a hard drive on the linux server. I have used some SSH over Java libraries but found them a bit difficult to use reliably. I can run the java app directly on the linux server so I’m wondering if there is a better way to make the needed calls to the server than over SSH. Any advice would be appreciated
Share
Runtime.getRuntime().exec(“some linux command”);
Example: