Changeset 53 for trunk/pbs_drmaa/submit.c
- Timestamp:
- 01/07/12 22:35:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pbs_drmaa/submit.c
r52 r53 336 336 if( wd != NULL ) 337 337 script_len += strlen("cd ") + strlen(wd) + strlen("; "); 338 script_len += strlen( "exec ") + strlen(executable);338 script_len += strlen(executable); 339 339 if( argv != NULL ) 340 340 for( i = argv; *i != NULL; i++ ) … … 342 342 if( input_path != NULL ) 343 343 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");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"); 346 346 } 347 347 … … 353 353 if( wd != NULL ) 354 354 s += sprintf( s, "cd %s; ", wd ); 355 s += sprintf( s, " exec%s", executable );355 s += sprintf( s, "%s", executable ); 356 356 if( argv != NULL ) 357 357 for( i = argv; *i != NULL; i++ ) … … 359 359 if( input_path != NULL ) 360 360 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);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 363 364 364 fsd_assert( s == script+script_len );
Note: See TracChangeset
for help on using the changeset viewer.