Skip to content

Commit d11622c

Browse files
CHG: for discover, scp does not work when requesting cmdout, does not request password and just hangs
1 parent 114669e commit d11622c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/m/os/issmscpout.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ function issmscpout(host,path,login,port,packages,varargin)
4242
end
4343
if port
4444
disp(['scp -P ' num2str(port) ' ' fileliststr ' ' login '@localhost:' path])
45-
[status,cmdout]=system(['scp -P ' num2str(port) ' ' fileliststr ' ' login '@localhost:' path]);
45+
[status]=system(['scp -P ' num2str(port) ' ' fileliststr ' ' login '@localhost:' path]);
4646
if status~=0
4747
%List expansion is a bash'ism. Try again with -OT.
4848
[status,cmdout]=system(['scp -OT -P ' num2str(port) ' ' fileliststr ' ' login '@localhost:' path]);
4949
end
5050
else
51-
[status,cmdout]=system(['scp ' fileliststr ' ' login '@' host ':' path]);
51+
[status]=system(['scp ' fileliststr ' ' login '@' host ':' path]);
5252
if status~=0
5353
%List expansion is a bash'ism. Try again with -OT.
5454
[status,cmdout]=system(['scp -OT ' fileliststr ' ' login '@' host ':' path]);

0 commit comments

Comments
 (0)