} else if (exitValue != 0) {
newState = Host.State.COPY_FAILED_CHECK_HOST;
} else {
RemoteComponentScriptCommand checkCmd = new RemoteComponentScriptCommand((2 * host.getResolveTimeout()), host, host.getConnectUser(),
variables.getProperty(VAR_SHELL_NAME, ""), (Util.IS_MODE_WINDOWS && host.getArchitecture().startsWith("win")), remoteFile);
checkCmd.execute();
exitValue = checkCmd.getExitValue();
// Set the new state of the host depending on the return value of the script
switch (exitValue) {
case EXIT_VAL_SUCCESS: newState = Host.State.REACHABLE; break;