public static boolean checkExistence ( String cmd ) { StringBuffer sb = runCommand ( "which " + cmd ) ; if ( sb . length ( ) > 1 ) return true ; return false ; }
Checks whether a specific shell command is available in the system .