enclose pwd in single quotes to allow for some special characters

Found by Fedor.
pull/1/head
Sebastian Held 2011-05-24 11:49:55 +02:00 committed by Thorsten Liebig
parent be9ee6b76b
commit 3f041cc5af
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ if (isfield(Settings,'SSH') && isunix)
disp( 'Remote simulation done... copying back results and cleaning up...' ); disp( 'Remote simulation done... copying back results and cleaning up...' );
%copy back all results %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); if (stat~=0);
disp(res); disp(res);
error('openEMS:RunOpenEMS','scp failed!'); error('openEMS:RunOpenEMS','scp failed!');

View File

@ -106,7 +106,7 @@ end
for n=1:numel(Remote_Nodes) for n=1:numel(Remote_Nodes)
remote_name = Remote_Nodes{n}; remote_name = Remote_Nodes{n};
disp(['Copy data from remote node: ' remote_name]); 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); if (stat~=0);
disp(res); disp(res);
error('openEMS:RunOpenEMS','remote scp failed!'); error('openEMS:RunOpenEMS','remote scp failed!');