From: ara.t.howard@... Date: 2007-03-01T08:11:04+09:00 Subject: Re: Net::FTP hangs On Thu, 1 Mar 2007, Timothy Hunter wrote: > ara.t.howard@noaa.gov wrote: >> On Wed, 28 Feb 2007, Timothy Hunter wrote: >> >>> Peter Booth wrote: >>>> Works for me from script or in irb. I'd be suspicious about your name >>>> resolution >>>> >>>> I'd suggest breaking this down - do any of the net examples work? >>>> Try an http example >>>> Try writing a dns client >>>> >>> open-uri works to retrieve a web page via a url. curl works. I installed >>> the most recent version of Ruby but it didn't help. >>> >> >> ftp.passive = true >> >> ?? >> >> -a > That did the trick, Ara! Thanks! Now the question is, why? > most client software auto negotiates this these days, like curl, which is very smart. ruby's ftp lib doesn't. i always forget which is which between passive and active, but i think people are moving toward passive because it plays nice with firewalls. http://slacksite.com/other/ftp.html regards. -a -- be kind whenever possible... it is always possible. - the dalai lama