linux下使用ftp传递文件的shell脚本
使用ftp传递文件,传递过程中防止对方取文件,后缀名为writing,传完后再改回来。#!/bin/bash
dstpath=cnet
ftpip="127.0.0.1"
login="user pwd"
#cirtime=3
filepath=/home/data/out
#filtercount=$(ls $filepath/out/*.txt|wc -l)
ftptransfer()
{
filename=$1
#echo $filename
ftp -i -n ${ftpip}
页:
[1]