agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/launchers/CondorLauncher.java
/**
     * Currently for the OSG condor submit host, files pushed to the execution system may not retain their executable
     * permission, so they need to be explicitly set.
     *
     * @throws JobException if unable to change permissions on the remote execution scripts, or communicate with the system
     */
Currently for the OSG condor submit host, files pushed to the execution system may not retain their executable
permission, so they need to be explicitly set.

@throws JobException if unable to change permissions on the remote execution scripts, or communicate with the system
Currently for the OSG condor submit host files pushed to the execution system may not retain their executable permission so they need to be explicitly set . @throws JobException if unable to change permissions on the remote execution scripts or communicate with the system
private void addExecutionPermissionsToWrapper() throws JobException {
        step = "Changing execute permissions on condor transfer wrapper and executable for job " + getJob().getUuid();
        log.debug(step);
        String changePermissionsCmd = String.format("cd \"%s\"; chmod +x *.sh ; chmod +x \"%s\"", getJob().getWorkPath(), getExecutablePath());
        try (RemoteSubmissionClient submissionClient = getExecutionSystem().getRemoteSubmissionClient(getJob().getInternalUsername())) {
            String response = submissionClient.runCommand(changePermissionsCmd);
            if (response.contains("Cannot")) {
                throw new JobException("Failed to set execute permission on Condor launch scripts: " + response);
            }
        }
        catch (AuthenticationException e) {
            throw new JobException("Failed to authenticate to execution system when setting execute permission " +
                    "on Condor launch scripts: " + e.getMessage(), e);
        }
        catch (JobException e) {
            throw e;
        }
        catch (Exception e) {
            throw new JobException("Failed to set execute permission on Condor launch scripts: " + e.getMessage(), e);
        }
    }
private void addExecutionPermissionsToWrapper ( ) throws JobException { step = "Changing execute permissions on condor transfer wrapper and executable for job " + getJob ( ) . getUuid ( ) ; log . debug ( step ) ; String changePermissionsCmd = String . format ( "cd \"%s\"; chmod +x *.sh ; chmod +x \"%s\"" , getJob ( ) . getWorkPath ( ) , getExecutablePath ( ) ) ; try ( RemoteSubmissionClient submissionClient = getExecutionSystem ( ) . getRemoteSubmissionClient ( getJob ( ) . getInternalUsername ( ) ) ) { String response = submissionClient . runCommand ( changePermissionsCmd ) ; if ( response . contains ( "Cannot" ) ) { throw new JobException ( "Failed to set execute permission on Condor launch scripts: " + response ) ; } } catch ( AuthenticationException e ) { throw new JobException ( "Failed to authenticate to execution system when setting execute permission " + "on Condor launch scripts: " + e . getMessage ( ) , e ) ; } catch ( JobException e ) { throw e ; } catch ( Exception e ) { throw new JobException ( "Failed to set execute permission on Condor launch scripts: " + e . getMessage ( ) , e ) ; } }
Currently for the OSG condor submit host, files pushed to the execution system may not retain their executable
 permission, so they need to be explicitly set.
Currently for the OSG condor submit host files pushed to the execution system may not retain their executable permission so they need to be explicitly set .