From owner-freebsd-hackers Sun Oct 3 12: 4:49 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id EB4F014DE6 for ; Sun, 3 Oct 1999 12:04:46 -0700 (PDT) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.8.8/8.8.8) id VAA11651 for freebsd-hackers@FreeBSD.ORG; Sun, 3 Oct 1999 21:04:45 +0200 (CEST) (envelope-from olli) Date: Sun, 3 Oct 1999 21:04:45 +0200 (CEST) From: Oliver Fromme Message-Id: <199910031904.VAA11651@dorifer.heim3.tu-clausthal.de> To: freebsd-hackers@FreeBSD.ORG Subject: Re: Fetch/wget/ftp: How to do a recursive ftp-get? Organization: Administration Heim 3 Reply-To: freebsd-hackers@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: TIN [version 1.2 RZTUC(3) PL2] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Leif Neland wrote in list.freebsd-hackers: > > This is where a useful tool like wget comes into play. Wget can be pretty > > much used as an automated replacement for fetch, or FTP URL retrieval. Can > > also be plugged into the whole ports system so that it can retrieve the > > ports data packages. > > But which tool can do a command-line, recursive ftp-get? wget can't, > because it does not create subdirs below the one specified, i.e. if I do > a wget -r ftp://webmaster:password@webserver.my.dom/htdocs/tree, it will > create the dir webserver.my.dom/htdocs/tree, but not any subdomains to > that. /usr/ports/ftp/omi (was moved from /usr/ports/net a few weeks ago). omi -s webserver.my.dom -r /htdocs/tree -l /local/tree \ -u webmaster -e password Note that it is a bad idea to use real passwords in that way, because others can see them in the `ps` output. You can put the password in your ~/.omirc, for example (and make sure it has permissions 600). Teaching omi to accept URL syntax is on my to-do list. Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message