Commit 28a4ca6c authored by Mike Cichonski's avatar Mike Cichonski
Browse files

added string swap for scheduler

parent 35d9fa4a
......@@ -89,7 +89,8 @@ if ~strcmp(job_struct.batch_config.software, 'none') ...
'remote_project_work', job_struct.context_config.remote_project_work, ...
'remote_dependency', job_struct.context_config.remote_dependency, ...
'mount_archive', job_struct.context_config.mount_archive, ...
'mount_work', job_struct.context_config.mount_work);
'mount_work', job_struct.context_config.mount_work, ...
'scheduler', job_struct.batch_config.exec_func(4:end));
if strcmp(job_struct.batch_config.software, 'none');
batchStr = ['system(''', strtrim(batchStr), ''')'];
......
......@@ -14,7 +14,7 @@
% Copyright (C) 2017 Brock University Cognitive and Affective Neuroscience Lab
%
% Code written by Michael Cichonski
% Code written by Mike Cichonski
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -126,6 +126,7 @@ try g.remote_project_work; catch, g.remote_project_work='';end
try g.remote_dependency; catch, g.remote_dependency='';end
try g.mount_archive; catch, g.mount_archive='';end
try g.mount_work; catch, g.mount_work='';end
try g.scheduler; catch, g.scheduler='';end
%% MODIFY TMPHISTSTR...
%perform replace_string{} swap...
......@@ -155,21 +156,23 @@ end
tmp_histstr=key_strswap(tmp_histstr,'batch_dfn',g.datafname);
% batch_dfp
tmp_histstr=key_strswap(tmp_histstr,'batch_dfp',g.datafpath);
%current_dir
% current_dir
tmp_histstr=key_strswap(tmp_histstr,'batch_cd',cd);
%log
% log
tmp_histstr=key_strswap(tmp_histstr,'log',g.log);
%local_project
% local_project
tmp_histstr=key_strswap(tmp_histstr,'local_project',g.local_project);
%local_dependency
% local_dependency
tmp_histstr=key_strswap(tmp_histstr,'local_dependency',g.local_dependency);
%remote_project_archive
% remote_project_archive
tmp_histstr=key_strswap(tmp_histstr,'remote_project_archive',g.remote_project_archive);
%remote_project_work
% remote_project_work
tmp_histstr=key_strswap(tmp_histstr,'remote_project_work',g.remote_project_work);
%remote_dependency
% remote_dependency
tmp_histstr=key_strswap(tmp_histstr,'remote_dependency',g.remote_dependency);
%mount_archive
% mount_archive
tmp_histstr=key_strswap(tmp_histstr,'mount_archive',g.mount_archive);
%mount_work
% mount_work
tmp_histstr=key_strswap(tmp_histstr,'mount_work',g.mount_work);
% scheduler
tmp_histstr=key_strswap(tmp_histstr,'scheduler',g.scheduler);
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