From owner-freebsd-questions Fri Dec 21 8:43:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sdsl-216-36-101-146.dsl.chi.megapath.net (sdsl-216-36-101-146.dsl.chi.megapath.net [216.36.101.146]) by hub.freebsd.org (Postfix) with SMTP id 290AA37B405 for ; Fri, 21 Dec 2001 08:43:09 -0800 (PST) Received: (qmail 5232 invoked from network); 21 Dec 2001 16:43:24 -0000 Received: from apu.five.sight (HELO apu.five.sight.fivesight.com) (lucas@192.168.0.102) by wiggum.five.sight with SMTP; 21 Dec 2001 16:43:24 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15395.26283.568826.27474@apu.five.sight> Date: Fri, 21 Dec 2001 10:43:23 -0600 To: Francisco Reyes From: Lucas Bergman Cc: FreeBSD Questions List Subject: Re: Automating multiple file transfers with FTP In-Reply-To: <20011221102106.K10298-100000@zoraida.natserv.net> References: <20011221102106.K10298-100000@zoraida.natserv.net> X-Mailer: VM 6.96 under 21.4 (patch 5) "Civil Service" XEmacs Lucid Reply-To: lucas@slb.to 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 > Any hints on how I can automate multiple file transfers with FTP > using a valid user/password? > > [ ... ] > > I did get the following to work: > ftp ftp://user:password@host/directory > Having ftp.script with something like: > ascii > prompt > mget *.txt That works. > Is this the only/best way to do this? I don't know about "best," but it's definitely not "only." > Ultimately I am going to try and do this through ssh, but scp didn't > seem to work to copy multiple files (tried sctp user@host:/files .). Hmmm... I can do $ scp user@host:/path/to/files/\*.txt . but that doesn't do anything recursive. If you want recursive FTP or HTTP sucking, try /usr/ports/ftp/wget. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message