agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/launchers/parsers/CondorJobIdParser.java
/**
     * Parse the output of the condor submit process to acquire the job number
     * @param lineOfText line of text from output that contains the job number
     * @return String of numeric chars of job number.
     */
Parse the output of the condor submit process to acquire the job number
@param lineOfText line of text from output that contains the job number
@return String of numeric chars of job number.
Parse the output of the condor submit process to acquire the job number @param lineOfText line of text from output that contains the job number @return String of numeric chars of job number .
private String parseJobNumber(String lineOfText) { 
        StringTokenizer st= null;
        if (lineOfText.contains("job(s) submitted to cluster"))
        {
            st = new StringTokenizer(lineOfText);
            int tokens = 0;
            while(st.hasMoreTokens() && tokens < 5 ){
                st.nextToken();
                tokens++;
            }
        }
        return st.nextToken().trim();
    }
private String parseJobNumber ( String lineOfText ) { StringTokenizer st = null ; if ( lineOfText . contains ( "job(s) submitted to cluster" ) ) { st = new StringTokenizer ( lineOfText ) ; int tokens = 0 ; while ( st . hasMoreTokens ( ) && tokens < 5 ) { st . nextToken ( ) ; tokens ++ ; } } return st . nextToken ( ) . trim ( ) ; }
Parse the output of the condor submit process to acquire the job number
 @param lineOfText line of text from output that contains the job number
 @return String of numeric chars of job number.
Parse the output of the condor submit process to acquire the job number @param lineOfText line of text from output that contains the job number @return String of numeric chars of job number .
// example text "1 job(s) submitted to cluster 95." // cycle thru tokens until we get to the one that represents the job number //.replace('.',' ').trim();