# Re: RUBY on 64-bit Windows PCs

**URL:** <https://www.ruby-forum.com/t/re-ruby-on-64-bit-windows-pcs/94643>\
**Category:** Ruby\
**Created:** [May 9, 2006, 8:24pm UTC](https://www.ruby-forum.com/t/re-ruby-on-64-bit-windows-pcs/94643 "2006-05-09T20:24:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [May 9, 2006, 8:24pm UTC](https://www.ruby-forum.com/t/re-ruby-on-64-bit-windows-pcs/94643/1 "2006-05-09T20:24:45Z")

</div>

> -----Original Message-----  
> From: removed\_email\_address@domain.invalid  
> [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Peter B.  
> Sent: Tuesday, May 09, 2006 11:59 AM  
> To: ruby-talk ML  
> Subject: Re: RUBY on 64-bit Windows PCs.

> end  
> I’m not sure it’s related, but you’re unnecessarily reopening your ftp  
> connection for every file. My _guess_ is that one of those sessions  
> isn’t closing properly, causing it to hang. Try moving the loop inside  
> the block:

cindexfiles = Dir.glob(“_\__-\*.pdf”)

Net::FTP.open(‘[mpc.bna.com](http://mpc.bna.com)’) do |ftp|  
ftp.debug\_mode = true  
ftp.passive = true  
ftp.login(user, passwd)  
ftp.chdir(‘/data/ps2000test’)  
cindexfiles.each do |cindexfile|  
ftp.putbinaryfile(cindexfile)  
end  
end

If that still hangs for some reason, try a non block approach with  
Net::FTP and see if that works.

Hope that helps.

Dan

This communication is the property of Qwest and may contain confidential  
or  
privileged information. Unauthorized use of this communication is  
strictly  
prohibited and may be unlawful. If you have received this communication  
in error, please immediately notify the sender by reply e-mail and  
destroy  
all copies of the communication and any attachments.

---

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [May 9, 2006, 9:01pm UTC](https://www.ruby-forum.com/t/re-ruby-on-64-bit-windows-pcs/94643/2 "2006-05-09T21:01:45Z")

</div>

Berger, Daniel wrote:

> > -----Original Message-----  
> > From: removed\_email\_address@domain.invalid  
> > [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Peter B.  
> > Sent: Tuesday, May 09, 2006 11:59 AM  
> > To: ruby-talk ML  
> > Subject: Re: RUBY on 64-bit Windows PCs.
> 
> > end  
> > I’m not sure it’s related, but you’re unnecessarily reopening your ftp  
> > connection for every file. My _guess_ is that one of those sessions  
> > isn’t closing properly, causing it to hang. Try moving the loop inside  
> > the block:
> 
> cindexfiles = Dir.glob(“_\__-\*.pdf”)
> 
> Net::FTP.open(‘[mpc.bna.com](http://mpc.bna.com)’) do |ftp|  
> ftp.debug\_mode = true  
> ftp.passive = true  
> ftp.login(user, passwd)  
> ftp.chdir(‘/data/ps2000test’)  
> cindexfiles.each do |cindexfile|  
> ftp.putbinaryfile(cindexfile)  
> end  
> end
> 
> If that still hangs for some reason, try a non block approach with  
> Net::FTP and see if that works.
> 
> Hope that helps.
> 
> Dan

Yes, I know that I’m iterating ftps here. But, it works on multiple  
32-bit machiens. That’s why I’m questioning it. Anyway, is there such a  
thing as “mput” instead of just “put” in RUBY ftp? Without a block, how  
could I send multiple files in ftp?

Thanks again.
