Skip to content
Snippets Groups Projects
Commit 15274080 authored by Marco Ratto's avatar Marco Ratto
Browse files

captured output from system commands

parent a07b0ae6
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ end ...@@ -41,7 +41,7 @@ end
for indPC=1:length(Parallel), for indPC=1:length(Parallel),
if isunix if isunix
system(['ssh ',Parallel(indPC).UserName,'@',Parallel(indPC).ComputerName,' rm -f ',Parallel(indPC).RemoteDirectory,'/',pname,fname]); [NonServeS NonServeD]=system(['ssh ',Parallel(indPC).UserName,'@',Parallel(indPC).ComputerName,' rm -f ',Parallel(indPC).RemoteDirectory,'/',pname,fname]);
else else
delete(['\\',Parallel(indPC).ComputerName,'\',Parallel(indPC).RemoteDrive,'$\',Parallel(indPC).RemoteDirectory,'\',pname,fname]); delete(['\\',Parallel(indPC).ComputerName,'\',Parallel(indPC).RemoteDrive,'$\',Parallel(indPC).RemoteDirectory,'\',pname,fname]);
end end
......
...@@ -38,7 +38,7 @@ end ...@@ -38,7 +38,7 @@ end
for indPC=1:length(Parallel), for indPC=1:length(Parallel),
while (1) while (1)
if ~ispc || strcmpi('unix',Parallel(indPC).OperatingSystem) if ~ispc || strcmpi('unix',Parallel(indPC).OperatingSystem)
stat = system(['ssh ',Parallel(indPC).UserName,'@',Parallel(indPC).ComputerName,' rm -fr ',Parallel(indPC).RemoteDirectory,'/',PRCDir]); [stat NonServe] = system(['ssh ',Parallel(indPC).UserName,'@',Parallel(indPC).ComputerName,' rm -fr ',Parallel(indPC).RemoteDirectory,'/',PRCDir,]);
break; break;
else else
if exist('OCTAVE_VERSION'), % Patch for peculiar behaviour of rmdir under Windows. if exist('OCTAVE_VERSION'), % Patch for peculiar behaviour of rmdir under Windows.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment