From: nathan phillips Date: 2002-07-18T00:28:09+09:00 Subject: First Program Hello everyone, I'm attempting to write my first Ruby program and am running into a little trouble. Any help would be appreciated. I'm running Ruby 1.6.6 on Windows and can't get FTP to get any files. Here is my program: require 'net/ftp' puts('connecting to host...') session = Net::FTP.new('myserver', 'me', 'mypassword') #session.debug_mode = true session.chdir('/usr/local/tomcat/logs') session.gettextfile('log.2002-06-20', 'log.2002-06-20') session.close() It fails on gettextfile. The error is: c:/ruby/lib/ruby/1.6/net/ftp.rb:218:in `transfercmd': 200 PORT command successful. (Net::FTPReplyError) from c:/ruby/lib/ruby/1.6/net/ftp.rb:286:in `retrlines' from c:/ruby/lib/ruby/1.6/net/ftp.rb:285:in `mon_synchronize' from c:/ruby/lib/ruby/1.6/net/ftp.rb:285:in `retrlines' Does anyone have an idea as to what I've done wrong? BTW - the file does exist. Thanks for any help. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com