matlab: ssh: copy all simulation files to host machine

pull/1/head
Thorsten Liebig 2010-11-26 14:48:47 +01:00
parent affd6ada44
commit 150b290aec
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ if (isfield(Settings,'SSH') && isunix)
disp(['Running remote openEMS on ' Settings.SSH.host ' at working dir: ' ssh_work_path]); disp(['Running remote openEMS on ' Settings.SSH.host ' at working dir: ' ssh_work_path]);
%copy openEMS simulation file to the ssh host %copy openEMS all simulation files to the ssh host
[stat, res] = unix(['scp ' scp_options ' ' Sim_File ' ' Settings.SSH.host ':' ssh_work_path '/' Sim_File]); [stat, res] = unix(['scp ' scp_options ' * ' Settings.SSH.host ':' ssh_work_path '/']);
if (stat~=0) if (stat~=0)
disp(res); disp(res);
error('openEMS:RunOpenEMS','scp failed!'); error('openEMS:RunOpenEMS','scp failed!');