private static synchronized boolean runScript(String scriptName, String[] args)
	{
		String command = "./" + scriptName;
		for (String arg : args){
			command += " " + arg;
		}
    	try {
    		Process p = Runtime.getRuntime().exec(command);
    		int exitvalue = p.waitFor();
    		if (exitvalue == 0) return true;
		} catch (InterruptedException e) {
			Log.getLogger().log(Level.INFO, "runScript failed due to InterruptedException: " + e.getMessage());
		} catch (IOException e) {
			Log.getLogger().log(Level.INFO, "runScript failed due to IOException: " + e.getMessage());
		}
		return false;
	}