public static List<String> runCommandAndGetOutputAsLines(String command){

		List<String> outputData = new ArrayList<String>();
		try{
			Process proc = Runtime.getRuntime().exec(command);
			BufferedReader reader = new BufferedReader(new InputStreamReader(proc.getInputStream()));

			String line = "";
			while((line = reader.readLine()) != null){
				if(!line.isEmpty()){
					outputData.add(line);
				}
			}

			proc.waitFor();


		} catch (IOException | InterruptedException e){

		}
		return outputData;

	}