QueueJobPeekGeneric

PURPOSE ^

QUEUEJOBPEEKGENERIC - ...

SYNOPSIS ^

function md=QueueJobPeekGeneric(md,executionpath)

DESCRIPTION ^

QUEUEJOBPEEKGENERIC - ...

   Usage:
      md=QueueJobPeekGeneric(md,executionpath)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function md=QueueJobPeekGeneric(md,executionpath)
0002 %QUEUEJOBPEEKGENERIC - ...
0003 %
0004 %   Usage:
0005 %      md=QueueJobPeekGeneric(md,executionpath)
0006 
0007 disp('downloading error and output log files');
0008 
0009 %download errlog and outlog from cluster
0010 system(['scp ' md.cluster ':' executionpath '/' md.name '.*log ./']);
0011 
0012 %read log files onto  fields
0013 md.errlog=readfile([md.name '.errlog']);
0014 md.outlog=readfile([md.name '.outlog']);
0015 
0016 %cat those two files
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 %erase the log files
0024 system(['rm -rf ' md.name '.outlog ' md.name '.errlog']);
0025 
0026 %warn user
0027 disp(sprintf('\n\nerror and output logs are saved in model fields for further checking'));

Generated on Sun 29-Mar-2009 20:22:55 by m2html © 2003