tags:

views:

1392

answers:

4

I'm a novice user trying to figure out how to transfer a 48 Gb directory (from the Mac Terminal command line) that contains multiple sub-directories, which themselves contain multiple directories, ... I'd like to not have to confirm the transfer of each sub-directory with a 'y/n' prompt.

A: 

ftp -i turns off prompts. mget * gets all the files.

    Microsoft Windows [Version 6.1.7000]
    Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

    C:\so>ftp -i **hostname**
    Connected to hostname.
    220 Microsoft FTP Service
    User (hostname:(none)): **username**
    331 Password required for username.
    Password:
    230 User username logged in.
    ftp> **cd logs**
    250 CWD command successful.
    ftp> **ls**
    200 PORT command successful.
    150 Opening ASCII mode data connection for file list.
    meetmap.com
    226 Transfer complete.
    ftp: 115 bytes received in 0.01Seconds 11.50Kbytes/sec.
    ftp> mget *
    200 Type set to A.
    200 PORT command successful.
    150 Opening ASCII mode data connection for meetmap.com/ex090131.log
        (5490 bytes).

    226 Transfer complete.
    ... (bunch more files)
    ftp> **quit**
    221

    C:\so>
Ry
sweetness. thanks so much.
feel free to vote mark this as an accepted answer.
Ry
A: 

ncftp should to be able to recursively get files. Alternatively, use any of infinite graphical drag and drop ftp clients.

Vardhan Varma
+1  A: 

Use mput * or mget *. When asked for confirmation, type a instead of y. This is the same as answering y for every single file for one command.

You can also change the prompting behavior using the prompt command.

You will find more information in the man page. In Terminal type: man ftp

BTW, this isn't really a programming question.

gclj5
Thanks for the answer. Apologies if SO isn't the right place to be posting this question.
A: 

Personally I do like wget and wput

Sergii