Java Tip

It is better to call shell command (having multiple spaces) by passing all arguments using a string array.


For e.g.

try{


         String myCmd[]={"command","dest","src"};
         shell.exec(myCmd);

}catch(Exception e){

        System.out.println(e.getMessage());

}


Comments

Popular posts from this blog

SQL Functions: Calculate difference between columns of current and previous/next row

PL/SQL Best Practices