From 3f041cc5af61c7edf4bdee22f630174cff4f6659 Mon Sep 17 00:00:00 2001 From: Sebastian Held Date: Tue, 24 May 2011 11:49:55 +0200 Subject: [PATCH] enclose pwd in single quotes to allow for some special characters Found by Fedor. --- matlab/RunOpenEMS.m | 2 +- matlab/RunOpenEMS_MPI.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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!');