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 #80923] Mon, 23 July 2012 09:46 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 7/23/12 8:58 AM, C.E. Ordonez wrote:
> 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.

Curious. Worked for me on Linux:

IDL> print, !version
{ x86_64 linux unix linux 8.0.1 Oct 7 2010 64 64}

But not on OS X (Lion):

IDL> print, !version
{ x86_64 darwin unix Mac OS X 8.2 Apr 10 2012 64 64}

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
[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 15:42:23 PDT 2025

Total time taken to generate the page: 0.00408 seconds