필터 지우기
필터 지우기

unable to establish consistent FTP connection, even in passive mode

조회 수: 3 (최근 30일)
Dan
Dan 2014년 3월 11일
댓글: Dan 2014년 3월 12일
Hello,
I am trying to set up my code to download a large amount of data from an FTP server. I downloaded the passive FTP function from the file exchange: http://www.mathworks.com/matlabcentral/fileexchange/6626-passive-mode-ftp-in-matlab
I seem to be getting this error randomly:
Error using connect (line 30)
Connection refused for "anonymous".
I say randomly becasue sometimes it will work for an extended period, say 2 hours. But other times it seems to disconnect every few minutes. Here is the basic part of my code that I loop through:
f2 = ftp('hydro1.sci.gsfc.nasa.gov');
pasv(f2)
I could provide more code if needed, but this is where it is crashing. Can anyone help me with this? Could this have to do with the specific FTP server, or something else?
Thanks in advance, Dan

답변 (1개)

Walter Roberson
Walter Roberson 2014년 3월 11일
Sometimes systems refuse anonymous ftp when they are loaded.
  댓글 수: 1
Dan
Dan 2014년 3월 12일
I chose to follow the recommendation of some other threads I found and call cURL (<http://curl.haxx.se/>) from Matlab. I found no disconnect problems with cURL, so it appears the Matlab FTP functions are in need of some work.
I also never run into these problems while using wget on UNIX systems.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by