diff --git a/matlab/RunOpenEMS.m b/matlab/RunOpenEMS.m index 00886cb..a4a76ea 100644 --- a/matlab/RunOpenEMS.m +++ b/matlab/RunOpenEMS.m @@ -83,7 +83,7 @@ if (isfield(Settings,'SSH') && isunix) disp( 'Remote simulation done... copying back results and cleaning up...' ); %copy back all results - [stat, res] = unix(['scp -r ' scp_options ' ' Settings.SSH.host ':' ssh_work_path '/* ' pwd '/']); + [stat, res] = unix(['scp -r ' scp_options ' ' Settings.SSH.host ':' ssh_work_path '/* ''' pwd '''/']); if (stat~=0); disp(res); error('openEMS:RunOpenEMS','scp failed!'); diff --git a/matlab/RunOpenEMS_MPI.m b/matlab/RunOpenEMS_MPI.m index f3cde95..a954c7e 100644 --- a/matlab/RunOpenEMS_MPI.m +++ b/matlab/RunOpenEMS_MPI.m @@ -106,7 +106,7 @@ end for n=1:numel(Remote_Nodes) remote_name = Remote_Nodes{n}; disp(['Copy data from remote node: ' remote_name]); - [stat, res] = unix(['scp -r ' scp_options ' ' remote_name ':' work_path '/* ' pwd '/']); + [stat, res] = unix(['scp -r ' scp_options ' ' remote_name ':' work_path '/* ''' pwd '''/']); if (stat~=0); disp(res); error('openEMS:RunOpenEMS','remote scp failed!');