From owner-freebsd-hackers Fri Sep 29 0:39: 2 2000 Delivered-To: freebsd-hackers@freefall.freebsd.org Received: from homer.softweyr.com (bsdconspiracy.net [208.187.122.220]) by hub.freebsd.org (Postfix) with ESMTP id 69A8637B42C for ; Fri, 29 Sep 2000 00:38:54 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=softweyr.com ident=Fools trust ident!) by homer.softweyr.com with esmtp (Exim 3.16 #1) id 13euuS-0000Ck-00; Fri, 29 Sep 2000 01:48:44 -0600 Message-ID: <39D4495C.94354DE3@softweyr.com> Date: Fri, 29 Sep 2000 01:48:44 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Ivan van der Merwe Cc: "'freebsd-hackers@freefall.cdrom.com'" Subject: Re: ftp transfers References: <21EF5EE45919D111865200805FA61F8A0111DA54@mother.atio.co.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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