linux ftp命令,用shell寫的ftp工具

 2023-11-19 阅读 19 评论 0

摘要:2019獨角獸企業重金招聘Python工程師標準>>> #!/bin/sh SRCFILEPATH=$1 #DESFILEPATH=$2 linux ftp命令,if [ $# != 4 ];then echo "USAGE:$0 ip username password destpath" exit fi while [ true ] do ftp的eof命令、#if [ ! -f *.xml ];th

2019獨角獸企業重金招聘Python工程師標準>>> hot3.png

#!/bin/sh


SRCFILEPATH=$1

#DESFILEPATH=$2

linux ftp命令,if [ $# != 4 ];then

echo "USAGE:$0 ip username password destpath"

exit

fi

while [ true ]

do

ftp的eof命令、#if [ ! -f *.xml ];then

#sleep 1

#continue

#fi

ls *.xml | sort -u >file.list

size=`du -s file.list | awk '{print $1}'`

ssh ftp,if [ $size -eq 0 ];then

usleep 100

continue

fi

while read file

do

什么是shell、FTP=`ftp -n<<!

open $1?

user $2 $3?

bin

cd $4

put ${file}

linux ftp取文件,close

bye

!`

FTPSIZE=`echo "$FTP"|awk '{print length($0)}'`

if [ "$FTPSIZE" != "0" ];then

usleep 100

shell文件?#continue

break

fi

rm -f $file

usleep 100

done<file.list

ftp命令?done



轉載于:https://my.oschina.net/u/238361/blog/358963

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/2/184171.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息