Changeset 495 for trunk/src/series.m
- Timestamp:
- Jul 20, 2012, 1:44:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r494 r495 1405 1405 path_fct=get(handles.ActionPath,'String'); 1406 1406 filelog=regexprep(filexml,'.xml$','.log'); 1407 text_matlabscript=[... 1408 '#!/bin/bash \n'... 1409 '. /etc/sysprofile \n'... 1410 'matlab -nodisplay -nosplash -nojvm -logfile ''' filelog ''' <<END_MATLAB \n'... 1411 'addpath(''' path_uvmat '''); \n'... 1412 'addpath(''' Series.Action.ActionPath '''); \n'... 1413 '' Series.Action.ActionName '( ''' filexml '''); \n'... 1414 'exit \n'... 1415 'END_MATLAB \n']; 1416 fprintf(fid,text_matlabscript); 1417 fclose(fid); 1418 if isunix 1419 system(['chmod +x ' filename_bat]);% set the file to executable 1420 system(['. ' filename_bat ' &']);%execute fct 1421 else 1422 system(filename_bat); 1407 1408 switch computer 1409 case {'GLNX86','GLNXA64','MACI64'} 1410 text_matlabscript=[... 1411 '#!/bin/bash \n'... 1412 '. /etc/sysprofile \n'... 1413 'matlab -nodisplay -nosplash -nojvm -logfile ''' filelog ''' <<END_MATLAB \n'... 1414 'addpath(''' path_uvmat '''); \n'... 1415 'addpath(''' Series.Action.ActionPath '''); \n'... 1416 '' Series.Action.ActionName '( ''' filexml '''); \n'... 1417 'exit \n'... 1418 'END_MATLAB \n']; 1419 fprintf(fid,text_matlabscript); 1420 fclose(fid); 1421 system(['chmod +x ' filename_bat]);% set the file to executable 1422 system(['. ' filename_bat ' &']);%execute fct 1423 1424 case {'PCWIN','PCWIN64'} 1425 text_matlabscript=['matlab -automation -logfile ' regexprep(filelog,'\\','\\\\')... 1426 ' -r "addpath(''' regexprep(path_uvmat,'\\','\\\\') ''');'... 1427 'addpath(''' regexprep(Series.Action.ActionPath,'\\','\\\\') ''');'... 1428 '' Series.Action.ActionName '( ''' regexprep(filexml,'\\','\\\\') ''');exit"']; 1429 fprintf(fid,text_matlabscript); 1430 fclose(fid); 1431 dos([filename_bat ' &']); 1423 1432 end 1424 1433 end
Note: See TracChangeset
for help on using the changeset viewer.