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.
views:
1392answers:
4
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
2009-02-07 10:27:57
sweetness. thanks so much.
2009-02-07 10:38:43
feel free to vote mark this as an accepted answer.
Ry
2009-02-07 16:32:21
A:
ncftp should to be able to recursively get files. Alternatively, use any of infinite graphical drag and drop ftp clients.
Vardhan Varma
2009-02-07 10:29:22
+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
2009-02-07 10:34:24