#!/bin/bash FILENAME=$1 DSTDIR=$2 FTPSRV=ip FTPUSER="user" FTPPWD="password" SRCDIR='/path/' FILE1=$1 /usr/bin/ftp -in $FTPSRV <<! user $FTPUSER $FTPPWD cd $SRCDIR lcd $DSTDIR bin mput ${FILE1} quit ! exit 0
posted on 2017-03-30 20:36 crac 阅读(134) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 crac Powered by .NET 8.0 on Kubernetes