Mac ftp.list problem

S

Sean Bowman

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

(e-mail address removed)
 
A

Ara.T.Howard

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
===============================================================================
 
S

Sean Bowman

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

(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,184
Messages
2,570,979
Members
47,579
Latest member
CharaS3188

Latest Threads

Top