Brief explanation: the "-n" option with FTP allows you to automate the process and pass the username/password without having to type them in response to a prompt -- this allows me to use it in a cron job. The "prompt" statement toggles prompting mode, in this case turning it off. "mget *" gets everything in the directory on the remote server. "bye" closes the connection. I hope this helps.ftp -n your.destination.host <<End-Of-Session user username password ascii lcd /local/directory cd /remote/directory prompt mget * bye End-Of-Session
In reply to Re: FTP from DOS to Unix and back
by spartacus9
in thread FTP from DOS to Unix and back
by ortsac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |