String[] command = new String[]{"perl", scriptName, arg1}; try { Runtime r = Runtime.getRuntime(); Process p = r.exec(command); // Read the results InputStream in = p.getInputStream(); // ... in.close(); } catch(Exception e) { e.printStackTrace(); }