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

Home » Public Forums » archive » Re: FTP downloading in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: FTP downloading in IDL [message #80924 is a reply to message #80923] Mon, 23 July 2012 07:58 Go to previous messageGo to previous message
nerdzoo is currently offline  nerdzoo
Messages: 4
Registered: July 2012
Junior Member
On 7/21/12 3:50 PM, JBT wrote:
> Dear all,
>
> So, does anyone know a working solution to download a file from an FTP server, please? Your help is much appreciated!
>

Both socket and IDLnetUrl methods worked on my OS X Lion + IDL 8.2:

IDL> help,!version,/st
** Structure !VERSION, 8 tags, length=104, data length=100:
ARCH STRING 'x86_64'
OS STRING 'darwin'
OS_FAMILY STRING 'unix'
OS_NAME STRING 'Mac OS X'
RELEASE STRING '8.2'
BUILD_DATE STRING 'Apr 10 2012'
MEMORY_BITS INT 64
FILE_OFFSET_BITS
INT 64
IDL>
IDL> url = ' ftp://ftp.ngdc.noaa.gov/STP/GEOMAGNETIC_DATA/INDICES/KP_AP/2 008'
IDL> read_ftp, url, file = '2008'
<220- ----- Notice -----
<220-
<220- This is a United States Department of Commerce computer system, which
<220- may be accessed and used only for official Government business by
<220- authorized personnel. Unauthorized access or use of this computer
<220- system may subject violators to criminal, civil, and/or administrative
<220- action.
<220-
<220- All information on this computer system may be intercepted, recorded,
<220- read, copied, and disclosed by and to authorized personnel for
<220- official purposes, including criminal investigations. Access or use of
<220- this computer system by any person whether authorized or unauthorized,
<220- constitutes consent to these terms.
<220-
<220- ----- Notice -----
<220-
<220- Questions/Problems should be directed to ngdc.linux-admin@noaa.gov
<220
>USER anonymous
>PASS test@test.com
>TYPE I
>CWD /STP/GEOMAGNETIC_DATA/INDICES/KP_AP
>SIZE 2008
>PASV
>RETR 2008
>QUIT
IDL>

And as David noted, the IDLnetUrl method was almost instantaneous. The
socket method took 45 sec.

-Caesar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL User Group Meeting 2012
Next Topic: libcurl error with Mac OS X upgrade

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

Current Time: Wed Oct 08 17:27:48 PDT 2025

Total time taken to generate the page: 0.00421 seconds