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

- use ~ispc to include unix and mac;

- capture output from ssh;
parent f8eedce3
Branches
Tags
No related merge requests found
......@@ -40,8 +40,8 @@ else
end
for indPC=1:length(Parallel),
if isunix
system(['ssh ',Parallel(indPC).UserName,'@',Parallel(indPC).ComputerName,' rm -f ',Parallel(indPC).RemoteDirectory,'/',pname,fname]);
if ~ispc
[NonServeS NonServeD]=system(['ssh ',Parallel(indPC).UserName,'@',Parallel(indPC).ComputerName,' rm -f ',Parallel(indPC).RemoteDirectory,'/',pname,fname]);
else
delete(['\\',Parallel(indPC).ComputerName,'\',Parallel(indPC).RemoteDrive,'$\',Parallel(indPC).RemoteDirectory,'\',pname,fname]);
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment