private void exec(String cmd){
		try { 
			Process p = Runtime.getRuntime().exec(cmd);
			p.waitFor(); 
			
			if (DEBUG) {
				BufferedReader reader=new BufferedReader(new InputStreamReader(p.getInputStream())); 
				String line=reader.readLine(); 
				
				while(line != null) { 
					System.out.println(line); 
					line=reader.readLine(); 
				}
			}

		} 
		catch(IOException e1) {} 
		catch(InterruptedException e2) {} 
		
		if (DEBUG) System.out.println("Finished running command: '" + cmd + "'");
	}