is this the right approach?
public void doSomething()
{
Process p;
String[] cmd = {"/usr/bin/ssh", "someRemoteMachine", "/absPathToMyProg/myProg"};
String[] envp = {"PATH=path_needed_toRun_myProg"};
try
{
p = Runtime.getRuntime().exec(cmd,envp);
}
catch (IOException e)
{
System.err.println("Epic Fail");
}
}
PATHwill propagate through the SSH connection; why not invokemyProgbased on its fully qualified path, if you know what this is?