catch (RemoteException re) {
logger.severe("Could not write to " + ORACLE_SCRIPT + " " + re);
logger.log(Level.FINE, "Exception", re);
}
try {
Command c = new Command("/bin/chmod", "a+x", ORACLE_SCRIPT);
CommandHandle h = cmdAgent.execute(c, null);
int exitValue = h.exitValue();
if (exitValue != 0) {
logger.severe("Could not change mode for "+ ORACLE_SCRIPT +
". Exit value for chmod is " + exitValue);
}
}
catch (Exception e) {
logger.severe("Could not change mode of " + ORACLE_SCRIPT + " : " + e);
logger.log(Level.FINE, "Exception", e);
}
logger.fine("Executing command " + cmd);
Command c = new Command(ORACLE_SCRIPT);
CommandHandle h = cmdAgent.execute(c, null);
int exitValue = h.exitValue();
boolean retVal;
if (exitValue == 0) {
logger.info("Listener stopped");