Ignore:
Timestamp:
May 10, 2018, 2:35:36 PM (6 years ago)
Author:
g7moreau
Message:
  • Just nice format
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cluster_command_psmn.m

    r1042 r1043  
    1717function cmd=cluster_command_psmn(ListProcessFile, ActionFullName, DirLog, NbProcess, NbCore, CPUTimeProcess)
    1818    SubmitScriptFile = regexprep(ListProcessFile, '\job_list.txt\>', 'submit_script.sh');
    19         fid_list = fopen(ListProcessFile, 'r');
     19    fid_list = fopen(ListProcessFile, 'r');
    2020    fid_submit = fopen(SubmitScriptFile, 'w');
    2121    i=1;
    22         while(true)
    23                 process = fgets(fid_list);
     22    while(true)
     23        process = fgets(fid_list);
    2424        if(process == -1)
    25                         break
     25            break
    2626        end
    2727        n = numel(process);
     
    3535                            process char(10)]);
    3636        i=i+1;
    37         end
    38         fclose(fid_list);
     37    end
     38    fclose(fid_list);
    3939    fclose(fid_submit);
    4040    system(['chmod +x ' SubmitScriptFile]);
Note: See TracChangeset for help on using the changeset viewer.