From a013077854a13b54ebea8aa87abb0dbfa9c96f58 Mon Sep 17 00:00:00 2001 From: funkmaus <45281317+funkmaus@users.noreply.github.com> Date: Mon, 27 Jan 2020 12:27:31 +0100 Subject: [PATCH] Allow whitespaces in simulation path (remote) A simulation path that contains a whitespace character (and probably a lot of other characters that have special meanings inside a shell) leads to an scp failure when the simulation data is copied back to the host machine. Replacing [pwd '/'] by just './' as the back-copying destination fixes this problem. --- matlab/RunOpenEMS.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/RunOpenEMS.m b/matlab/RunOpenEMS.m index 938814b..6214190 100644 --- a/matlab/RunOpenEMS.m +++ b/matlab/RunOpenEMS.m @@ -157,7 +157,7 @@ if (enable_ssh) disp( 'Remote simulation done... copying back results and cleaning up...' ); %copy back all results - [stat, res] = system([scp_command ' -r ' scp_options ' ' Settings.SSH.host ':' ssh_work_path '/* ' pwd '/']); + [stat, res] = system([scp_command ' -r ' scp_options ' ' Settings.SSH.host ':' ssh_work_path '/* ./']); if (stat~=0); disp(res); error('openEMS:RunOpenEMS','scp failed!');