import java.io.*; public class testex1 { public static void main (String args[]) { try { //Process p = Runtime.getRuntime().exec("/usr/bin/ls"); Process p = Runtime.getRuntime().exec("/usr/bin/cp ppp pww"); //DataInputStream dis = new DataInputStream( // new BufferedInputStream(p.getInputStream())); String s = null; //while ((s = dis.readLine()) != null) { //System.out.println(s); //} } catch (Exception e){ System.out.println("the detailed msg:" + e); } } }