hao32的个人日志

upload files via bash shell script

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

1 评论

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

发表回复