Control psftp (PuTTy) through matlab

조회 수: 14 (최근 30일)
Aliaa Abdelnasser Madbouly Afify
My issue is I want to download data from url "http://" through psftp and I have all the command on terminal but I would like to do that through matlab code.
My code is this on terminal:
psftp
psftp> open host.name
psftp> cd path/to/path
psftp> mget ./*.O
so I want to write a code on MatLab to do the same thing.
note that the host.name is http:// website.
  댓글 수: 6
Walter Roberson
Walter Roberson 2021년 6월 2일
To check: did you put the actual hostname (or IP address) into the ftp command, in place of where you wrote 'hostname' ?
Also, the psftp sequence you showed does not set a username or password, so you are possibly using anonymous ftp, in which case you would not supply the username or password. Possibly just something like
X = ftp('speedtest.tele2.net')
Aliaa Abdelnasser Madbouly Afify
yes, It's just the hostname and it look like the command you wrote but there are username and password for that hostname, I forgot to mention that psftp asked me for the username and the password. Also when I opend the hostname on chrome for example I don't have to enter them.
so I run
X = ftp('speedtest.tele2.net')
and there was no error only with the hostname I am using 'epop-data.phys.ucalgary.ca'

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Web Services from MATLAB Using HTTP에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by