22. 04.

look the example:

#!/bin/bash
cd /home/wwwroot/home.com/
FTPSERVER=’60.87.34.19′;
FTPUSER=’ftpusesr’
FTPPASSWD=’******’
ftp -n -v $FTPSERVER << EOT
binary
user $FTPUSER $FTPPASSWD
prompt
cd images
put asset_system.swf
put kitchen.swf
put main.swf
put config.xml
bye
EOT


作者: hao32 | 可以转载, 转载时务必以超链接形式标明文章原始出处和作者信息及版权声明
网址:http://www.hao32.com/everything/350.html

有一条对 „upload files via bash shell script“ 的评论

  1. Jerry 发表评论说:

    不错,呵呵
    正在找一个类似的例子

发表评论: