Found this bash script online that has quality documentation: Here you will tell FTP to put or get the file. put pethydro.org # End FTP Connection bye. Linux Shell Scripting (28) - Automating File Transfer . the FTP command and how to use it in the bash shell instead of using GUI applications. Sometimes I want to FTP a file from one machine to another. Usually, I can do the transfer interactively, but every so often, I would like to have a shell script do. Below are two answers. First is a suggestion to use a more secure/flexible solution like ssh/scp/sftp. Second is an explanation of how to run ftp in batch mode. I want to create a script, which transfer these files in another server using ftp as | The #!/bin/bash HOST='' USER='uninet\pethydro.org'. FTP file transfer with an automated bash script. This is a really quick blog post, I don't wanna bother you with a complete article related to FTP. Usually, ftp command line clients support the configuration file ~/.netrc where If you need to do more automation, you can script ftp via piping. In this introductory post, we explain what Windows FTP scripts are and how to create simple scripts to upload or download files from a server. The following article will help you script ftp commands process and the data transitions. 1. Create a new text file with the following text. The ftp program has started saving the remote file pethydro.org as the to it (the default shell in most Linux distributions is bash, the Bourne Again SHell).