0001 function md=QueueJobPeekGeneric(md,executionpath)
0002
0003
0004
0005
0006
0007 disp('downloading error and output log files');
0008
0009
0010 system(['scp ' md.cluster ':' executionpath '/' md.name '.*log ./']);
0011
0012
0013 md.errlog=readfile([md.name '.errlog']);
0014 md.outlog=readfile([md.name '.outlog']);
0015
0016
0017 disp(sprintf('\n\nerror log:\n\n'));
0018 system(['cat ' md.name '.errlog']);
0019
0020 disp(sprintf('\n\noutput log:\n\n'));
0021 system(['cat ' md.name '.outlog']);
0022
0023
0024 system(['rm -rf ' md.name '.outlog ' md.name '.errlog']);
0025
0026
0027 disp(sprintf('\n\nerror and output logs are saved in model fields for further checking'));