Changeset 192 for trunk/src/civ.m
- Timestamp:
- Feb 14, 2011, 7:03:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r188 r192 1672 1672 return 1673 1673 end 1674 else1675 if isunix1676 [xx,w]=unix('ps faux |grep civ|wc -l');1677 w(end)=[];1678 if str2double(w)+numel(num1_civ1)> 501679 msgbox_uvmat('ERROR',{['There are already ' w ' civ processes running locally'];'Use BATCH or submit RUN later'})1680 return1681 end1682 end1674 % else 1675 % if isunix 1676 % [xx,w]=unix('ps faux |grep civ|wc -l'); 1677 % w(end)=[]; 1678 % if str2double(w)+numel(num1_civ1)> 50 1679 % msgbox_uvmat('ERROR',{['There are already ' w ' civ processes running locally'];'Use BATCH or submit RUN later'}) 1680 % return 1681 % end 1682 % end 1683 1683 end 1684 1684 … … 2253 2253 fprintf(fid,super_cmd'); 2254 2254 fclose(fid); 2255 if(isunix) 2256 eval(['!. ' filename_superbat ' &']); 2257 else 2258 eval(['!' filename_superbat ' &']); 2259 end 2255 % if(isunix) 2256 %system(['chmod +x ' filename_superbat]) 2257 system([filename_superbat ' &'])% execute main commmand 2258 % else 2259 % eval(['!' filename_superbat ' &']); 2260 % end 2260 2261 end 2261 2262
Note: See TracChangeset
for help on using the changeset viewer.