Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2000 01:48:44 -0600
From:      Wes Peters <wes@softweyr.com>
To:        Ivan van der Merwe <Ivan@atio.co.za>
Cc:        "'freebsd-hackers@freefall.cdrom.com'" <freebsd-hackers@freefall.freebsd.org>
Subject:   Re: ftp transfers
Message-ID:  <39D4495C.94354DE3@softweyr.com>
References:  <21EF5EE45919D111865200805FA61F8A0111DA54@mother.atio.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
Ivan van der Merwe wrote:
> 
> Hi
> 
> I need to do fequent ftp downloads. I would like to put
> this in the crontab if possible.
> In windows you can specify a file containing
> all the files that you want downloaded.
> 
> Can I do the same on Unix

Of course you can:

	ftp some.server.com << EOF
	username
	password
	cd /some/directory
	get file1
	get file2
	EOF

This is called a 'here is' document.  But really it's much easier to just
use fetch.  See the fetch(1) man page.

-- 
            "Where am I, and what am I doing in this handbasket?"

Wes Peters                                                         Softweyr LLC
wes@softweyr.com                                           http://softweyr.com/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39D4495C.94354DE3>