Changeset 1043 for trunk/src/cluster_command_psmn.m
- Timestamp:
- May 10, 2018, 2:35:36 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cluster_command_psmn.m
r1042 r1043 17 17 function cmd=cluster_command_psmn(ListProcessFile, ActionFullName, DirLog, NbProcess, NbCore, CPUTimeProcess) 18 18 SubmitScriptFile = regexprep(ListProcessFile, '\job_list.txt\>', 'submit_script.sh'); 19 19 fid_list = fopen(ListProcessFile, 'r'); 20 20 fid_submit = fopen(SubmitScriptFile, 'w'); 21 21 i=1; 22 23 22 while(true) 23 process = fgets(fid_list); 24 24 if(process == -1) 25 25 break 26 26 end 27 27 n = numel(process); … … 35 35 process char(10)]); 36 36 i=i+1; 37 38 37 end 38 fclose(fid_list); 39 39 fclose(fid_submit); 40 40 system(['chmod +x ' SubmitScriptFile]);
Note: See TracChangeset
for help on using the changeset viewer.