Tag Archives: shell scrripting

Execute Remote Shell Script from Java


String[] command = {“/etc/ssh”, “myUser@remoteServer”, “runprog.ksh ‘param1′”};
final Process process = Runtime.getRuntime().exec(command);

Advertisements