Control psftp (PuTTy) through matlab
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aliaa Abdelnasser Madbouly Afify
am 31 Mai 2021
Kommentiert: Aliaa Abdelnasser Madbouly Afify
am 2 Jun. 2021
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 Kommentare
Walter Roberson
am 2 Jun. 2021
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')
Antworten (0)
Siehe auch
Kategorien
Mehr zu Call Web Services from MATLAB Using HTTP finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!