ftp脚本
if [ $# -ne 2 ]; then
echo "input srcPath targetPath"
echo "usa $0 /data/ansible/changePD/payCenter/public/ /apps/pay_center/conf/app/public"
exit
fi
ip='XXXX'
port=30000
userN='pay_center'
pass='XXXXX'
fileName='database.properties'
ftp -n<<!
open $ip $port
user $userN $pass
binary
hash
prompt off
lcd $1
cd $2
ls $fileName
mput $fileName
ls $fileName
close
bye
!
浙公网安备 33010602011771号