Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bucanl_eeglab_extensions
Batch Context
Commits
41138f53
Commit
41138f53
authored
Jul 20, 2017
by
Brad Kennedy
Browse files
Slurm print job id at top of file
parent
cf05aa01
Changes
1
Hide whitespace changes
Inline
Side-by-side
batch/exec_func/octave_exit_wrapper.m
View file @
41138f53
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment