From owner-freebsd-questions@FreeBSD.ORG Wed Dec 17 12:07:56 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1208616A4CE for ; Wed, 17 Dec 2003 12:07:56 -0800 (PST) Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD0DB43D78 for ; Wed, 17 Dec 2003 12:07:41 -0800 (PST) (envelope-from toomas.aas@raad.tartu.ee) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id hBHK7dPj029905; Wed, 17 Dec 2003 22:07:40 +0200 Message-Id: <200312172007.hBHK7dPj029905@lv.raad.tartu.ee> Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 17 Dec 03 22:07:40 +0200 Received: from SpoolDir by INFO (Mercury 1.48); 17 Dec 03 22:07:29 +0200 From: "Toomas Aas" Organization: Tartu City Government To: "Micheal Patterson" Date: Wed, 17 Dec 2003 22:07:27 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Priority: normal In-reply-to: <061701c3c406$ad39cc80$4df24243@tsgincorporated.com> cc: questions@freebsd.org Subject: Re: fetch / wget problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2003 20:07:56 -0000 > From: "Micheal Patterson" > Date: Tue, 16 Dec 2003 12:59:03 -0600 > ----- Original Message ----- > From: "Toomas Aas" > Sent: Tuesday, December 16, 2003 12:38 PM > > I think that firewalls are configured correctly, because I can > > successfully get the file manually, using the 'ftp' command. > > > > However, when I try this command: > > > > fetch ftp://user.name:password@server.mydomain.com/directory/file.ext > > > > I get an error message: > > > > I also tried wget, which succeeds to connect, but then, no matter what > > I do, insists on using passive mode. > > You may be able to do this with a .netrc in the user folder that's running > the script. Thanks for the idea, perhaps it would work. But considering that the filename to be downloaded is not fixed but needs to be passed to the script as a parameter, I think that it's easier to use CURL (as I wrote yesterday). Otherwise I would need to dynamically modify the .netrc file. -- Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ * Don't use no double negatives.