2014-04-16 14:19:13 +08:00
|
|
|
#!/bin/sh
|
2014-04-16 16:26:50 +08:00
|
|
|
localfile=$1
|
2014-04-15 18:15:31 +08:00
|
|
|
remotefile=$2
|
|
|
|
|
2014-04-16 13:47:40 +08:00
|
|
|
sftp $FTP_HOME << EOF
|
2014-04-15 18:15:31 +08:00
|
|
|
put $localfile $remotefile
|
|
|
|
bye
|
|
|
|
EOF
|
2014-04-16 14:19:13 +08:00
|
|
|
echo "upload finished"
|