Date: Fri, 21 Dec 2001 10:43:23 -0600 From: Lucas Bergman <lucas@slb.to> To: Francisco Reyes <lists@natserv.com> Cc: FreeBSD Questions List <questions@freebsd.org> Subject: Re: Automating multiple file transfers with FTP Message-ID: <15395.26283.568826.27474@apu.five.sight> In-Reply-To: <20011221102106.K10298-100000@zoraida.natserv.net> References: <20011221102106.K10298-100000@zoraida.natserv.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <ftp.script > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15395.26283.568826.27474>