1. #! /bin/bash
    2. ftp -n << END_FTP
    3. open 192.168.1.22
    4. user test testing //用户名test 密码:testing
    5. binary
    6. prompt off //关闭提示
    7. mput files //上传files文件
    8. close
    9. bye
    10. END_FTP