Commit 41138f53 authored by Brad Kennedy's avatar Brad Kennedy
Browse files

Slurm print job id at top of file

parent cf05aa01
......@@ -32,13 +32,22 @@
arg_list = argv();
fname = arg_list{1};
arg_list = arg_list(2:end);
%% System specific jobid printing
jobid = getenv('SLURM_JOBID');
if ~isempty(jobid)
disp(['Jobid is: ' jobid]);
end
%% Run the wrapped script
[pathstr, name, ext] = fileparts(fname);
fullpath = fullfile(pathstr, [name, ext]);
% Check if the directory/file exists
if exist(pathstr, 'dir') ~= 7
fprintf(['The specified file does not exist; The specified path' ...
'does not exist: %s'], pathstr);
' does not exist: %s'], pathstr);
exit(1);
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment