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 ];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