close
SFTP 또는 FTP 서버와의 연결 닫기
구문
설명
예제
FTP 서버 연결을 엽니다. 그런 다음 세션이 종료되면 해당 연결을 닫습니다.
먼저, NCEI(National Centers for Environmental Information) FTP 서버에 연결합니다.
s = ftp('ftp.ngdc.noaa.gov') FTP with properties:
Host: "ftp.ngdc.noaa.gov"
Username: "anonymous"
Port: 21
ServerLocale: "en_US"
DirParserFcn: @matlab.io.ftp.parseDirListingForUnix
Mode: "binary"
LocalDataConnectionMethod: "passive"
RemoteWorkingDirectory: "/"
CertificateFilename: "default"
ConnectionTimeout: 5 min
TransferTimeout: Inf sec
서버의 내용을 표시하고 README.txt 파일을 가져옵니다.
dir(s)
DMSP INDEX.txt README.txt STP Snow_Ice Solid_Earth coastwatch dmsp4alan ftp.html geomag google12c4c939d7b90761.html index.html international ionosonde mgg pub wdc
mget(s,'README.txt');FTP 서버와의 연결을 닫습니다.
close(s)
NCEI(National Centers for Environmental Information)에서 제공하는 FTP 서비스입니다. NCEI 개인정보 취급방침을 보려면 NCEI Privacy Policy, Disclaimer, and Copyright를 참조하십시오.
입력 인수
SFTP 또는 FTP 서버와의 연결로, SFTP 객체 또는 FTP 객체로 지정됩니다.
팁
세션의 마지막에
close를 실행하지 않은 경우 연결 시간이 자동으로 초과되거나 MATLAB®을 종료할 때 연결이 종료됩니다.close는 성공 또는 실패를 나타내는 출력값을 반환하지 않습니다.
버전 내역
R2006a 이전에 개발됨
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)