I don't know about that faq script but the ftp commands are as follows (and these can be used in a script if you know how to make a here-to construct):
mput *
mget *
mput is multiple-put. mget is multi-get. You can give it wildcards and it will grab them all. One thing though, it will prompt you for a yes/no for each filename. To turn off the prompting so it does them all without pause use:
prompt
That toggles the prompting. You might also want to use the ftp command:
hash
This gives hash symbols (#) as it transfers so you know the program is not asleep and you have some idea of how far it's gone. Good for big jobs. Turn if off if it's a background job writing to a log file.
prompt and hash are "toggle" commands. By that I mean entering it once turns it on, entering again turns it off, etc.
#CRON ftp Script
#
cd /path/to/directory
ftp -inv <<!
open 192.168.1.23 #Ip address of remote host
user login password
bin
mget * #mget * get all files in directory
quit
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.