comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » idlneturl, ftpcommand method not working
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
idlneturl, ftpcommand method not working [message #90611] Tue, 17 March 2015 08:45 Go to next message
Dae-Kyu Shin is currently offline  Dae-Kyu Shin
Messages: 25
Registered: February 2015
Junior Member
hi
here is example

; ftp://spdf.gsfc.nasa.gov/pub/data/omni/omni_cdaweb/hourly/20 00
url_name = 'spdf.gsfc.nasa.gov'
ftp = idlneturl(url_scheme='ftp', ftp_connection_mode=0, $
url_hostname = url_name)
dir_path = 'pub/data/omni/omni_cdaweb/hourly'
ftp.setproperty, url_path = dir_path ; working

res = ftp.ftpcommand('CWD 2000')
print, ftp.getftpdirlist(/short);; not working

is this bug??

idl 8.4 on ubuntu 12.04
thanks
Re: idlneturl, ftpcommand method not working [message #90612 is a reply to message #90611] Tue, 17 March 2015 09:33 Go to previous messageGo to next message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
> res = ftp.ftpcommand('CWD 2000')
> print, ftp.getftpdirlist(/short);; not working


For me, the change of directories with ftpCommand does not work. I do not use IDLnetURL with FTP, so could not tell you if this is a bug or if it is a behavior of the FTP server.
Re: idlneturl, ftpcommand method not working [message #90618 is a reply to message #90611] Tue, 17 March 2015 14:56 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
I think it is a bug. It does not work with a local FTP site either.


url = 'ftp://ftp.eos.sr.unh.edu/pub/outgoing/CWSmith'
ftp = idlneturl()
% Loaded DLM: URL.
ftp -> SetProperty, URL_SCHEME='ftp', URL_HOST='ftp.eos.sr.unh.edu', URL_PATH='pub/outgoing/CWSmith'
print, ftp -> GetFTPDirList(/SHORT)
res = ftp -> ftpCommand('CWD RBSP')
print, ftp -> GetFTPDirList(/SHORT)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Spline returns NaN values
Next Topic: IsA questions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:37:27 PDT 2025

Total time taken to generate the page: 0.00442 seconds