enclose pwd in single quotes to allow for some special characters
Found by Fedor.pull/1/head
parent
be9ee6b76b
commit
3f041cc5af
|
@ -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!');
|
||||||
|
|
|
@ -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!');
|
||||||
|
|
Loading…
Reference in New Issue