Fetch/wget/ftp: How to do a recursive ftp-get?
> > BTW.. although risking to be off-topic by miles, I always liked the way > > how NetBSD's ftp(1) (since 1.4 or so) implemented http and ftp URL > > fetching and thus eliminated the need for a fetch(1) command. > > Couldn't the FreeBSD ftp(1) be enhanced that way, [ObTopic, slime slime] > > to use fetch(3) for that purpose? > > 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:[EMAIL PROTECTED]/htdocs/tree, it will create the dir webserver.my.dom/htdocs/tree, but not any subdomains to that. Leif To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Fetch/wget/ftp: How to do a recursive ftp-get?
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:[EMAIL PROTECTED]/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:[EMAIL PROTECTED]) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Fetch/wget/ftp: How to do a recursive ftp-get?
Personally, for recursive gets - I love yafc. It rocks. I also like the interface.. and I could be wrong but I believe it supports usage of the ftp:// directives. On Sun, 3 Oct 1999, Leif Neland wrote: > > > > > BTW.. although risking to be off-topic by miles, I always liked the way > > > how NetBSD's ftp(1) (since 1.4 or so) implemented http and ftp URL > > > fetching and thus eliminated the need for a fetch(1) command. > > > Couldn't the FreeBSD ftp(1) be enhanced that way, [ObTopic, slime slime] > > > to use fetch(3) for that purpose? > > > > 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:[EMAIL PROTECTED]/htdocs/tree, it will > create the dir webserver.my.dom/htdocs/tree, but not any subdomains to > that. > > Leif > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Fetch/wget/ftp: How to do a recursive ftp-get?
> But which tool can do a command-line, recursive ftp-get? NcFTP versions 2 & 3 can. There are also purely command-line versions, called ncftpget & ncftpput in the `ncftp3' port. -- -- David([EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Fetch/wget/ftp: How to do a recursive ftp-get?
Why is this cross-posted? Leif Neland wrote: > > 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:[EMAIL PROTECTED]/htdocs/tree, it will > create the dir webserver.my.dom/htdocs/tree, but not any subdomains to > that. > > Leif wget -r -m --follow-ftp -T timeout_seconds -c "URL_HERE" I know as I do. -- Kris Kirby <[EMAIL PROTECTED]> --- TGIFreeBSD... 'Nuff said. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message