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
[EMAIL PROTECTED]                                           http://softweyr.com/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to