FTP: FTP from a command procedure

Question:

Are there available any examples of how to use FTP from a command procedure?

Answer:

Following is an example of how to use FTP from a command procedure:

$ ! FTP files from this host to the ftp.univ.edu
$ ! anonymous ftp server.
$ !
$ ftp 
  open ftp.univ.edu anonymous users@host.com
  cd "/download"
  put sendfile.txt 
  quit
$ exit