From owner-freebsd-questions Tue Feb 12 13: 5: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from bea-mx.thebeaconjournal.com (133.muha.clvd.chcgil24.dsl.att.net [12.100.23.133]) by hub.freebsd.org (Postfix) with ESMTP id 20E8737B405 for ; Tue, 12 Feb 2002 13:04:53 -0800 (PST) Received: from [206.128.102.10] ([206.128.102.10]) by bea-mx.thebeaconjournal.com (Netscape Messaging Server 4.15) with ESMTP id GRFUK600.1K0 for ; Tue, 12 Feb 2002 16:04:54 -0500 Mime-Version: 1.0 X-Sender: jarnold@krcoms1.knightridder.com Message-Id: Date: Tue, 12 Feb 2002 17:01:07 -0500 To: freebsd-questions@freebsd.org From: "James A. Arnold" Subject: *bizarre* ftp problem Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Every night a script on my FreeBSD 4.4 stable box grabs a .tar.gz file off of another server on our network. The file each night is usually more that 20 MB in size. However, my FBSD box will only download a little more than 8 megs before if stops downloading. I am using an expect script to handle the download with ftp. I also wrote another expect script to use ncftp3 and the same thing happens. I recently wrote the scripts. I don't think they are the problem since it does everything it's suppose to do. When I manually use ncftp or plain ftp from the shell it works perfectly and downloads the entire file without a hitch. I did notice an "ETA0" at the end of the failed ftp session when I ran my script manually from the command line. I'm running the script each night out cron. Here is what it looked like: manually running photos_in.exp: 150 Opening BINARY mode data connection for 0212.tar.gz (28171960 bytes). 32% |**************** | 8836 KB 00:21 ETA0 Here are the two sessions I ran manually with ncftp3 and ftp from the shell. Both worked just fine: Manually running ftp: -rw-r--r-- 1 photos photos 28171960 Feb 12 01:15 0212.tar.gz 226 Transfer complete. ftp> get 0212.tar.gz local: 0212.tar.gz remote: 0212.tar.gz 227 Entering Passive Mode (206,128,102,77,36,145) 150 Opening BINARY mode data connection for 0212.tar.gz (28171960 bytes). 100% |********************************************************************| 27511 KB 00:00 ETA 226 Transfer complete. 28171960 bytes received in 30.01 seconds (916.70 KB/s) manually running ncftp3 User photos logged in. Logged in to 206.128.102.77. ncftp /home/photos > get 0212.tar.gz 0212.tar.gz: 26.87 MB 897.49 kB/s My guess at this point is that it's some kind of network problem. The box to which I'm downloading is set up with two ethernet cards so I can access our internal network and a dsl line at the same time. Below is the output of ifconfig for my box: spike# ifconfig ed0: flags=8843 mtu 1500 inet 206.128.102.241 netmask 0xffffff00 broadcast 206.128.102.255 atalk 65280.116 range 0-65534 phase 2 broadcast 0.255 ether 00:e0:7d:80:00:76 dc0: flags=8843 mtu 1500 inet 192.168.0.118 netmask 0xffffff00 broadcast 192.168.0.255 ether 00:04:5a:46:1a:37 media: Ethernet autoselect (10baseT/UTP) status: active lp0: flags=8810 mtu 1500 faith0: flags=8000 mtu 1500 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 atalk 0.0 range 0-0 phase 2 ppp0: flags=8010 mtu 1500 sl0: flags=c010 mtu 552 I'm totally stumped at this point. Any ideas out there? Thanks, Jim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message