How can I write ftp command for a file transfer from one server to other with a simple script?

  • You mean transferring files directly between server1 and server2 while controlling the transfer from client3? – peterph Mar 22 '13 at 14:02
  • No, to transfer files from server-1 to server-2, while controlling from server-1. – Swagatika Mar 25 '13 at 7:40

lftp (and a lot of other ftp clients) will let you specify username, password, and the series of commands to issue with its command line. man lftp for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.