Ignore:
Timestamp:
01/07/12 21:21:29 (12 years ago)
Author:
mmamonski
Message:

store job exit status in file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/submit.c

    r49 r52  
    342342                if( input_path != NULL ) 
    343343                        script_len += strlen(" <") + strlen(input_path); 
     344                if (((pbsdrmaa_session_t)self->session)->job_exit_status_file_prefix) 
     345                        script_len += strlen("; echo $? >") + strlen(((pbsdrmaa_session_t)self->session)->job_exit_status_file_prefix) + strlen("/$PBS_JOBID.exitcode"); 
    344346         } 
    345347 
     
    357359                if( input_path != NULL ) 
    358360                        s += sprintf( s, " <%s", input_path ); 
     361                if (((pbsdrmaa_session_t)self->session)->job_exit_status_file_prefix) 
     362                        s += sprintf( s, "; echo $? >%s/$PBS_JOBID.exitcode", ((pbsdrmaa_session_t)self->session)->job_exit_status_file_prefix); 
     363 
    359364                fsd_assert( s == script+script_len ); 
    360365         } 
Note: See TracChangeset for help on using the changeset viewer.