Mac ftp.list problem

Trying to call the Net::FTP list command, e.g. ftp.list(), on my Mac causes the script to hang. I've debug traced into the libraries as far as I can go, and the thing hangs at net/ftp.rb line 340: conn = sock.accept. I'm not sure if this is the problem though, as it's two "synchronize" calls deep, so maybe it's a threading issue on the Mac.

I've tried this on both the Ruby 1.8.2 that comes with OS X (Tiger), and compiling and installing 1.8.3 from scratch. Neither works; both hang. Anyone else having similar problems? Any thoughts on a solution?

By the way, the same exact script works fine on Ubuntu Linux and RedHat ES.

Sean Bowman
Lab Architect/Ontology Strategy
1221 Auraria Parkway
Denver, CO 80204
303.808.1718
303.572.1122 x202

sbowman@localmatters.com

ftp.passive = true

??

-a

···

On Thu, 3 Nov 2005, Sean Bowman wrote:

Trying to call the Net::FTP list command, e.g. ftp.list(), on my Mac causes
the script to hang. I've debug traced into the libraries as far as I can
go, and the thing hangs at net/ftp.rb line 340: conn = sock.accept. I'm
not sure if this is the problem though, as it's two "synchronize" calls
deep, so maybe it's a threading issue on the Mac.

I've tried this on both the Ruby 1.8.2 that comes with OS X (Tiger), and compiling and installing 1.8.3 from scratch. Neither works; both hang. Anyone else having similar problems? Any thoughts on a solution?

By the way, the same exact script works fine on Ubuntu Linux and RedHat ES.

--

email :: ara [dot] t [dot] howard [at] noaa [dot] gov
phone :: 303.497.6469
anything that contradicts experience and logic should be abandoned.
-- h.h. the 14th dalai lama

===============================================================================

Beer's on me next time you're in Denver. Worked perfectly.

Trying to call the Net::FTP list command, e.g. ftp.list(), on my Mac causes
the script to hang. I've debug traced into the libraries as far as I can
go, and the thing hangs at net/ftp.rb line 340: conn = sock.accept. I'm
not sure if this is the problem though, as it's two "synchronize" calls
deep, so maybe it's a threading issue on the Mac.

I've tried this on both the Ruby 1.8.2 that comes with OS X (Tiger), and compiling and installing 1.8.3 from scratch. Neither works; both hang. Anyone else having similar problems? Any thoughts on a solution?

By the way, the same exact script works fine on Ubuntu Linux and RedHat ES.

  ftp.passive = true

??

-a
--

> email :: ara [dot] t [dot] howard [at] noaa [dot] gov
> phone :: 303.497.6469
> anything that contradicts experience and logic should be abandoned.
> -- h.h. the 14th dalai lama

Sean Bowman
Lab Architect/Ontology Strategy
1221 Auraria Parkway
Denver, CO 80204
303.808.1718
303.572.1122 x202

sbowman@localmatters.com

···

On Nov 2, 2005, at 8:06 PM, Ara.T.Howard wrote:

On Thu, 3 Nov 2005, Sean Bowman wrote: