public int exec ( String cmd , Map < String , String > env ) throws IOException , InterruptedException { return exec ( cmd , env , System . out , System . err , null ) ; }
Executes the a command specified in parameter .