Führen Sie einen Multi -Line -Shell -Comand in Java aus
String[] cmd = {"/bin/sh","-c","test.sh parm1 parm2"}; Runtime.getRuntime().exec(cmd);
Encouraging Eland
String[] cmd = {"/bin/sh","-c","test.sh parm1 parm2"}; Runtime.getRuntime().exec(cmd);