public class erlcmd { public static void main(String[] args) throws Exception{ String command[] = {"erl","2 + 3."}; for(int i=0;i<command.length;i++)> { Process proc = Runtime.getRuntime().exec(command[i]); // Read the output BufferedReader reader = new BufferedReader(new InputStreamReader(proc.getInputStream())); String line = ""; while((line = reader.readLine()) != null) { System.out.print(line + "\n"); } proc.waitFor(); } } }
exec
Process proc = Runtime.getRuntime().exec(command);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)