Commit ef56f877 authored by Marco Ratto's avatar Marco Ratto

- fix for Octave printf

- missing semicolon
parent 55e553f6
...@@ -369,7 +369,11 @@ for Node=1:length(DataInput) % To obtain a recoursive function remove the 'for' ...@@ -369,7 +369,11 @@ for Node=1:length(DataInput) % To obtain a recoursive function remove the 'for'
send='exit'; send='exit';
StrCommand=([s1,s2,s3,s4,s41,s42,s5,s51,s52,send]); StrCommand=([s1,s2,s3,s4,s41,s42,s5,s51,s52,send]);
% Mettere controllo su NbW ... % Mettere controllo su NbW ...
NbW = fprintf(fid,StrCommand, '%s'); if exist('OCTAVE_VERSION')
NbW = printf(fid,StrCommand, '%s');
else
NbW = fprintf(fid,StrCommand, '%s');
end
fclose(fid); fclose(fid);
dynareParallelSendFiles('Tracing.m', RemoteTmpFolder,DataInput(Node)); dynareParallelSendFiles('Tracing.m', RemoteTmpFolder,DataInput(Node));
...@@ -398,7 +402,7 @@ for Node=1:length(DataInput) % To obtain a recoursive function remove the 'for' ...@@ -398,7 +402,7 @@ for Node=1:length(DataInput) % To obtain a recoursive function remove the 'for'
if Environment if Environment
% Controllare ... in Linux! % Controllare ... in Linux!
system(['ssh ',DataInput(Node).UserName,'@',DataInput(Node).ComputerName,' "cd ',DataInput(Node).RemoteDirectory,'/',RemoteTmpFolder, '; ', DataInput(Node).MatlabOctavePath, ' -nosplash -nodesktop -minimize -r Tracing;" &']) system(['ssh ',DataInput(Node).UserName,'@',DataInput(Node).ComputerName,' "cd ',DataInput(Node).RemoteDirectory,'/',RemoteTmpFolder, '; ', DataInput(Node).MatlabOctavePath, ' -nosplash -nodesktop -minimize -r Tracing;" &']);
else else
[NonServeS NenServeD]=system(['start /B psexec \\',DataInput(Node).ComputerName,' -e -u ',DataInput(Node).UserName,' -p ',DataInput(Node).Password,' -W ',DataInput(Node).RemoteDrive,':\',DataInput(Node).RemoteDirectory,'\',RemoteTmpFolder ' -low ',DataInput(Node).MatlabOctavePath,' -nosplash -nodesktop -minimize -r Tracing']); [NonServeS NenServeD]=system(['start /B psexec \\',DataInput(Node).ComputerName,' -e -u ',DataInput(Node).UserName,' -p ',DataInput(Node).Password,' -W ',DataInput(Node).RemoteDrive,':\',DataInput(Node).RemoteDirectory,'\',RemoteTmpFolder ' -low ',DataInput(Node).MatlabOctavePath,' -nosplash -nodesktop -minimize -r Tracing']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment