public void run(){
    		try{
    			BufferedInputStream buf = new BufferedInputStream(is);
    			InputStreamReader inread = new InputStreamReader(buf);
    			BufferedReader bufferedreader = new BufferedReader(inread);
    			String line;
    			while ((line = bufferedreader.readLine()) != null) {
    				if(isErr){
    					System.err.println(line);
    				}else{
    					System.out.println(line);
    				}
    			}
    		}catch(Exception e){
    			System.err.println("Got error while consuming:"+cmd+", isErr:"+isErr);
    			e.printStackTrace();
    		}finally{
    			close(is);
    		}
    	}