We have a requirement wherein an IS needs to send requests to a java client running on a remote machine. If the client is down, the IS would know, and it would need to restart this client. Could someone please tell me how to start a java client on a remote machine?
One way I was thinking of involves a java service that would invoke a shell script on a local machine. This shell script would login to the remote machine and invoke a shell script on it which would start the java client on the remote machine.
Is there a cleaner way to achieve this?
Thanks a lot for the tips!
The only reason I didn’t want a script on the local computer to manage the client, is because that might require monitoring the script/process too. But otherwise, I agree that would be a simpler process to design.
Expect seems to be an extremely useful tool! I hadn’t thought about that earlier. I will investigate it’s feasibility in the current context.